CVE-2023-34455: snappy-java's unchecked chunk length leads to DoS
Vulnerability summary
CVE-2023-34455 is a high (CVSS 7.5) vulnerability in xerial snappy-java. EPSS estimates a 1.76% chance of exploitation in the next 30 days, higher than 78% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 15-06-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
snappy-java is a fast compressor/decompressor for Java. Due to use of an unchecked chunk length, an unrecoverable fatal error can occur in versions prior to 1.1.10.1. The code in the function hasNextChunk in the fileSnappyInputStream.java checks if a given stream has more chunks to read. It does that by attempting to read 4 bytes. If it wasn’t possible to read the 4 bytes, the function returns false. Otherwise, if 4 bytes were available, the code treats them as the length of the next chunk. In the case that the `compressed` variable is null, a byte array is allocated with the size given by the input data. Since the code doesn’t test the legality of the `chunkSize` variable, it is possible to pass a negative number (such as 0xFFFFFFFF which is -1), which will cause the code to raise a `java.lang.NegativeArraySizeException` exception. A worse case would happen when passing a huge positive value (such as 0x7FFFFFFF), which would raise the fatal `java.lang.OutOfMemoryError` error. Version 1.1.10.1 contains a patch for this issue.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · MavenEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.76%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.76% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundSnappy Java
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- druid< 37.0.0-r0
- hadoop-fips-3.3.6< 3.3.6-r15 | < 3.3.6-r21
Org.xerial.snappy1 product
- snappy-java< 1.1.10.1
Ubuntu1 product
- snappy-javaAll versions (No fix recorded)
Wolfi1 product
- druid< 37.0.0-r0
Xerial1 product
- snappy-java< 1.1.10.1
5 vendors · 6 products
References
11 links- github.com/xerial/snappy-java/security/advisories/GHSA-qcwq-55hx-v3vhX Refsource CONFIRMREPORTAdvisoryWEBExploitVendor Advisory
- github.com/xerial/snappy-java/commit/3bf67857fcf70d9eea56eed4af7c925671e8eaeaX Refsource MISCREPORTFIXWEBPatch
- github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/SnappyInputStream.javaX Refsource MISCREPORTWEBIssue Tracking