CVE-2025-67721: Aircompressor's Snappy and LZ4 Java-based decompressor implementation can leak information from reused output buffer
Summary Incorrect handling of malformed data in Java-based decompressor implementations for Snappy and LZ4 allows remote attackers to read previous buffer contents via crafted compressed input. In applications where the output buffer is reused without being cleared, this may lead to disclosure of sensitive data.
Details With certain crafted compressed inputs, elements from the output buffer can end up in the uncompressed output. This is relevant for applications that reuse the same output buffer to uncompress multiple inputs. This can be the case of a web server that allocates a fix-sized buffer for performance purposes. This is similar to GHSA-cmp6-m4wj-q63q.
Impact Applications using aircompressor as described above may leak sensitive information to external unauthorized attackers.
Mitigation
The vulnerability is fixed in release 3.4. However, it can be mitigated by either: Avoiding reuse of the decompression buffer across calls Clearing the decompression buffer before a call to decompress data
Other sources
Aircompressor is a library with ports of the Snappy, LZO, LZ4, and Zstandard compression algorithms to Java. In versions 3.3 and below, incorrect handling of malformed data in Java-based decompressor implementations for Snappy and LZ4 allow remote attackers to read previous buffer contents via crafted compressed input. With certain crafted compressed inputs, elements from the output buffer can end up in the uncompressed output, potentially leaking sensitive data. This is relevant for applications that reuse the same output buffer to uncompress multiple inputs. This can be the case of a web server that allocates a fix-sized buffer for performance purposes. There is similar vulnerability in GHSA-cmp6-m4wj-q63q. This issue is fixed in version 3.4.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-67721?
CVE-2025-67721 is considered a high-severity vulnerability due to its potential to allow remote attackers to read sensitive buffer contents.
How do I fix CVE-2025-67721?
To fix CVE-2025-67721, upgrade the io.airlift:aircompressor-v3 package to version 3.4 or later.
Which applications are affected by CVE-2025-67721?
CVE-2025-67721 affects applications that utilize Java-based decompressor implementations for Snappy and LZ4 without proper buffer handling.
Can CVE-2025-67721 lead to data exposure?
Yes, CVE-2025-67721 can lead to data exposure if an output buffer is reused without being cleared.
What is the cause of CVE-2025-67721?
CVE-2025-67721 is caused by incorrect handling of malformed data in Java-based decompressor implementations.