Maven
CVE-2026-108106
snappy-java: Unbounded memory allocation from attacker-declared uncompressed lengtha
- Severity
- High 7.5
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.1.10.9
- Exploit chance
- 0.4% in the next 30 daysHigher than 31% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-q233-g92q-qxp6
- Sources
- OSV.dev and GitHub
Description
Several decompression paths in snappy-java allocate an output buffer sized by the uncompressed length declared in the first bytes of the compressed data, before decompressing or validating it. A few bytes of crafted input can therefore force an allocation of up to 2 GB, causing OutOfMemoryError (denial of service), or a NegativeArraySizeException for declared lengths of 2^31 or more.
Affected entry points include Snappy.uncompress(byte[]), Snappy.uncompressString, the Snappy.uncompress*Array methods, SnappyInputStream, and SnappyFramedInputStream. The maxChunkSize limit added for CVE-2023-43642 bounds only the compressed chunk length, so it does not prevent this.
Workarounds
Before decompressing untrusted data, check that Snappy.uncompressedLength(input) is within an application-specific limit.
Affected software
| Software | Affected versions |
|---|---|
org.xerial.snappy:snappy-javaMaven · osv:Maven:org.xerial.snappy:snappy-java |
|
About org.xerial.snappy:snappy-java
Vulnerabilities in org.xerial.snappy:snappy-java
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-93451snappy-java: Heap buffer overflow in Snappy.uncompress*Array typed-array methodsHigh 7.5 27 Oct 2026
- CVE-2026-116590snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWriteMedium 5.9 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-108106
- GitHub Advisory Database https://github.com/advisories/GHSA-q233-g92q-qxp6