CVE-2026-93451
snappy-java: Heap buffer overflow in Snappy.uncompress*Array typed-array methods
Description
Impact
Snappy.uncompressCharArray, uncompressShortArray, uncompressIntArray, uncompressLongArray, uncompressFloatArray and uncompressDoubleArray sized the result array by dividing the declared uncompressed byte length by the element size, but native code wrote the full byte length. If the declared length is not a multiple of the element size, up to 7 bytes are written past the end of the Java array, corrupting the heap.
Patches
Fixed in 1.1.10.9 (#739). These methods now reject uncompressed lengths that are not a multiple of the element size with SnappyIOException.
Workarounds
Check that Snappy.uncompressedLength(input) is a multiple of the element size before calling these methods.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xerial.snappy » snappy-java | < 1.1.10.9 | 1.1.10.9 |
Blast radius
75% of the dependent artifacts (23,791) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 70,983 |
| 2 hops | 760,553 |
| 3 hops | 872,992 |
| 4 hops | 497,466 |
| 5 hops | 185,739 |
| 6 hops | 95,193 |
Most used dependents
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.avro » avro2,427 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-hdfs1,377 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.springframework.kafka » spring-kafka1,063 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.flink » flink-streaming-java982 usages
- com.taoensso » timbre977 usages
- org.apache.hbase » hbase-client960 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/xerial/snappy-java/security/advisories/GHSA-gwq9-9ffj-mvrv
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-93451
- Webhttps://github.com/xerial/snappy-java/issues/729
- Webhttps://github.com/xerial/snappy-java/pull/739
- Webhttps://github.com/xerial/snappy-java/commit/943c6043a292568575e8347af4507d015e802c75
- Packagehttps://github.com/xerial/snappy-java
- Webhttps://github.com/xerial/snappy-java/blob/v1.1.10.8/src/main/java/org/xerial/snappy/Snappy.java#L802
- Webhttps://github.com/xerial/snappy-java/releases/tag/v1.1.10.9
- Webhttps://www.vulncheck.com/advisories/snappy-java-through-1.1.10.8-buffer-overflow-via-typed-uncompress-methods
