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)
| 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-xqrx-qh46-34m7
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-116590
- Webhttps://github.com/xerial/snappy-java/pull/741
- Webhttps://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b
- Packagehttps://github.com/xerial/snappy-java
- Webhttps://github.com/xerial/snappy-java/releases/tag/v1.1.10.9
