CVE-2025-67721
aircompressor Snappy and LZ4 Java-based decompressor implementation can leak information from reused output buffer
Description
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 and 2.0.3. 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
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.airlift » aircompressor | < 2.0.3 | 2.0.3 |
| io.airlift » aircompressor-v3 | < 3.4 | 3.4 |
Blast radius
63% of the dependent artifacts (3,698) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 14,931 |
| 2 hops | 70,109 |
| 3 hops | 145,463 |
| 4 hops | 94,510 |
| 5 hops | 41,484 |
| 6 hops | 16,631 |
Most used dependents
- org.apache.maven.plugins » maven-source-plugin87,037 usages
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-jar-plugin59,787 usages
- org.apache.felix » maven-bundle-plugin31,882 usages
- org.apache.maven.plugins » maven-assembly-plugin28,314 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.apache.maven.plugins » maven-war-plugin6,519 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- net.alchim31.maven » scala-maven-plugin3,328 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- org.codehaus.gmavenplus » gmavenplus-plugin1,631 usages
- org.apache.maven.plugins » maven-remote-resources-plugin1,567 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/airlift/aircompressor/security/advisories/GHSA-vx9q-rhv9-3jvg
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-67721
- Webhttps://github.com/airlift/aircompressor/pull/309
- Webhttps://github.com/airlift/aircompressor/commit/f2b489b398779b40c1ee29ddb11d7edef54ddc15
- Webhttps://github.com/airlift/aircompressor/commit/ff12c4d5757c9d6d1de3d39a10402f1f84f9b765
- Packagehttps://github.com/airlift/aircompressor
- Webhttps://github.com/airlift/aircompressor/releases/tag/2.0.3
