HIGH 7.5

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)

ArtifactAffected versionsFixed in
org.xerial.snappy » snappy-java
< 1.1.10.9
1.1.10.9

Blast radius

1affected artifacts
108affected versions
31,516dependent artifacts (est.)
2,482,926dependent versions

75% of the dependent artifacts (23,791) still pull an affected version in their latest release.

DepthDependent 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

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.