MODERATE 5.9

CVE-2026-116590

snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWrite

Description

Impact

Snappy.arrayCopy(Object src, int offset, int byteLength, Object dest, int destOffset) called a native memcpy without validating the ranges. A negative or oversized byteLength or offset read or wrote outside the arrays and crashed the JVM. SnappyOutputStream.rawWrite and SnappyInputStream.rawRead, and therefore the typed-array write/read methods, pass caller-supplied ranges to this method.

Patches

Fixed in 1.1.10.9 (#741). Snappy.arrayCopy checks both ranges before copying. The stream read/write methods validate offsets and lengths, and reject typed-array ranges whose byte size overflows int.

Workarounds

Validate offsets and lengths 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.