Vulnerability · Published Sep 25, 2023 · Assigned by GitHub_M
CVE-2023-43642Missing upper bound check on chunk length in snappy-java
High 7.5
In plain English
A high-severity resource allocation without limits in snappy-java from xerial. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
snappy-java is a Java port of the snappy, a fast C++ compresser/decompresser developed by Google. The SnappyInputStream was found to be vulnerable to Denial of Service (DoS) attacks when decompressing data with a too large chunk size. Due to missing upper bound check on chunk length, an unrecoverable fatal error can occur. All versions of snappy-java including the latest released version 1.1.10.3 are vulnerable to this issue. A fix has been introduced in commit `9f8c3cf74` which will be included in the 1.1.10.4 release. Users are advised to upgrade. Users unable to upgrade should only accept compressed data from trusted sources.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snappy-java | no fix listed | DEBIAN-CVE-2023-43642 |
| Debian:13 | snappy-java | 1.1.10.5-1 | DEBIAN-CVE-2023-43642 |
| Debian:14 | snappy-java | 1.1.10.5-1 | DEBIAN-CVE-2023-43642 |
| Maven | org.xerial.snappy:snappy-java | 1.1.10.4 | GHSA-55g7-9cwv-5qfv |
| Ubuntu:22.04:LTS | snappy-java | no fix listed | UBUNTU-CVE-2023-43642 |
| Ubuntu:24.04:LTS | snappy-java | no fix listed | UBUNTU-CVE-2023-43642 |
| Ubuntu:25.10 | snappy-java | no fix listed | UBUNTU-CVE-2023-43642 |
| Ubuntu:26.04:LTS | snappy-java | no fix listed | UBUNTU-CVE-2023-43642 |
| Ubuntu:26.10 | snappy-java | no fix listed | UBUNTU-CVE-2023-43642 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xerial | snappy-java | < 1.1.10.4 |
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H