snappy-java is vulnerable to Double Free
87
CVE Score
High
Double Free
Before the fix, SnappyFramedInputStream returned its buffers to the shared buffer pool before allocating larger replacements and kept referencing them when the allocation failed, so close() released the same buffers a second time. Anyone who can feed the stream x-snappy-framed data can declare a large uncompressed chunk length to force an OutOfMemoryError; the default CachingBufferPool does not detect duplicates, so another stream can receive the same backing array and read or overwrite a different stream's decompressed data. The risk applies whenever framed data from parties you do not trust is decompressed with the default pooled constructors. The fix clears each buffer field immediately after releasing it, so a failed allocation can no longer cause a second release.
Upgrade the org.xerial.snappy:snappy-java package to 1.1.10.10 or later.
You are affected if you are using a version that falls within the vulnerable range and decompress x-snappy-framed data from parties you do not fully trust using SnappyFramedInputStream with its default caching buffer pool.
1.1.7.4 - 1.1.10.9
Fixed in 1.1.10.10snappy-java is vulnerable to Double Free in versions 1.1.7.4 - 1.1.10.9.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.