CVE-2024-36114
Decompressors can crash the JVM and leak memory content in Aircompressor
Description
Summary
All decompressor implementations of Aircompressor (LZ4, LZO, Snappy, Zstandard) can crash the JVM for certain input, and in some cases also leak the content of other memory of the Java process (which could contain sensitive information).
Details
When decompressing certain data, the decompressors try to access memory outside the bounds of the given byte arrays or byte buffers. Because Aircompressor uses the JDK class sun.misc.Unsafe to speed up memory access, no additional bounds checks are performed and this has similar security consequences as out-of-bounds access in C or C++, namely it can lead to non-deterministic behavior or crash the JVM.
Users should update to Aircompressor 0.27 or newer where these issues have been fixed.
Impact
When decompressing data from untrusted users, this can be exploited for a denial-of-service attack by crashing the JVM, or to leak other sensitive information from the Java process.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.airlift » aircompressor | < 0.27 | 0.27 |
Blast radius
52% of the dependent artifacts (2,133) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,375 |
| 2 hops | 56,120 |
| 3 hops | 124,896 |
| 4 hops | 76,570 |
| 5 hops | 24,831 |
| 6 hops | 9,063 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.flink » flink-table-api-java-bridge635 usages
- org.apache.spark » spark-hive633 usages
- org.apache.flink » flink-clients545 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.flink » flink-table-planner471 usages
- org.apache.parquet » parquet-avro434 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.parquet » parquet-hadoop362 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-973x-65j7-xcf4
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-36114
- Webhttps://github.com/airlift/aircompressor/commit/15e68df9eb0c2bfde7f796231ee7cd1982965071
- Webhttps://github.com/airlift/aircompressor/commit/2cea90a45534f9aacbb77426fb64e975504dee6e
- Webhttps://github.com/airlift/aircompressor/commit/cf66151541edb062ea88b6f3baab3f95e48b7b7f
- Webhttps://github.com/airlift/aircompressor/commit/d01ecb779375a092d00e224abe7869cdf49ddc3e
- Packagehttps://github.com/airlift/aircompressor
