Skip to content

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

High
doitian published GHSA-3gjh-29fv-8hr6 Aug 12, 2020

Package

No package listed

Affected versions

<= 0.34.1

Patched versions

0.34.2

Description

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

Severity

High

CVE ID

No known CVE

Weaknesses

No CWEs

Credits