Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zZ2poLTI5ZnYtOGhyNs4AA5Cq

Nervos CKB Snappy decompress length can be very large and causes out of memory error

Impact

Adversary can create message which compressed size is less than the package limit but the decompressed length is very large such as 1G. It will cost the node many memories to process the network messages, and on the system with less than 1G memory, the process is killed directly because of out of memory error.

Patches

The node must check the decompress length before allocating the memory for the message.

References

Permalink: https://github.com/advisories/GHSA-3gjh-29fv-8hr6
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zZ2poLTI5ZnYtOGhyNs4AA5Cq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 27 days ago
Updated: 27 days ago


Identifiers: GHSA-3gjh-29fv-8hr6
References:

Affected Packages

cargo:ckb
Versions: <= 0.34.1
Fixed in: 0.34.2