CVE-2023-34455 snappy-java's unchecked chunk length leads to DoS
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Ubuntu
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.
Upgrade path
11 packages: 2 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/snappy-java(Ubuntu 14.04) | = 1.0.4.1~dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 16.04) | = 1.1.1.7-2; = 1.1.2-1; = 1.1.2.1-2; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 18.04) | = 1.1.4-1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 20.04) | = 1.1.7.2-1; = 1.1.7.3-1; = 1.1.7.3-1build1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 22.04) | = 1.1.8.3-1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 24.04) | = 1.1.8.3-1; = 1.1.10.5-1; = 1.1.10.5-1build1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 25.10) | = 1.1.10.7-1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 26.04) | = 1.1.10.7-1; = 1.1.10.8-1; All versions | No fix listed | No fix yet |
| ubuntu/snappy-java(Ubuntu 26.10) | = 1.1.10.8-1; All versions | No fix listed | No fix yet |
| org.xerial.snappy/snappy-java(Maven) | < 1.1.10.1; <= 1.1.10.0; = 1.0.1-rc1; = 1.0.1-rc2 +73 more | 1.1.10.1 | Fixed |
| xerial snappy-java | < 1.1.10.1; = < 1.1.10.1 | 1.1.10.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.xerial.snappy/snappy-java(Maven) | <= 1.1.10.0 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | < 1.1.10.1 | 1.1.10.1 |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.1-rc1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.1-rc2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.1-rc3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.1-rc4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3-rc1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3-rc2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3-rc3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3-rc4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.3.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.4.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5-M2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5-M3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5-M4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.0.5.4 | No fix listed |
Show 79 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0-M2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0-M3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0-M4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.0.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1-M2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1-M3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1-M4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.5 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.6 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.1.7 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.10.0 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2-RC1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2-RC2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2-RC3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.5 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.2.6 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.3-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.3-M2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.4-M1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.4-M2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.4-M3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.5 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.6 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.7 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.7.8 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.8 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.8.1 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.8.2 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.8.3 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.8.4 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.9.0 | No fix listed |
| org.xerial.snappy/snappy-java(Maven) | = 1.1.9.1 | No fix listed |
| xerial snappy-java | = < 1.1.10.1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:22.04) | All versions | No fix listed |
| xerial snappy-java | < 1.1.10.1 | 1.1.10.1 |
| ubuntu/snappy-java(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:14.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:14.04) | = 1.0.4.1~dfsg-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:16.04) | = 1.1.1.7-2 | No fix listed |
| ubuntu/snappy-java(Ubuntu:16.04) | = 1.1.2-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:16.04) | = 1.1.2.1-2 | No fix listed |
| ubuntu/snappy-java(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:18.04) | = 1.1.4-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:20.04) | = 1.1.7.2-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:20.04) | = 1.1.7.3-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:20.04) | = 1.1.7.3-1build1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:22.04) | = 1.1.8.3-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:24.04) | = 1.1.8.3-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:24.04) | = 1.1.10.5-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:24.04) | = 1.1.10.5-1build1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/snappy-java(Ubuntu:25.10) | = 1.1.10.7-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:26.10) | = 1.1.10.8-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:26.04) | = 1.1.10.7-1 | No fix listed |
| ubuntu/snappy-java(Ubuntu:26.04) | = 1.1.10.8-1 | No fix listed |
References
- https://github.com/xerial/snappy-java/security/advisories/GHSA-qcwq-55hx-v3vh exploit issue-tracking vendor-advisory
- https://github.com/xerial/snappy-java/commit/3bf67857fcf70d9eea56eed4af7c925671e8eaea issue-tracking patch
- https://github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/SnappyInputStream.java#L388 issue-tracking
- https://github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/SnappyInputStream.java issue-tracking
- nvd.nist.gov third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- github.com
- github.com product
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking