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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.2%top 31.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12snappy-javano fix listedDEBIAN-CVE-2023-43642
Debian:13snappy-java1.1.10.5-1DEBIAN-CVE-2023-43642
Debian:14snappy-java1.1.10.5-1DEBIAN-CVE-2023-43642
Mavenorg.xerial.snappy:snappy-java1.1.10.4GHSA-55g7-9cwv-5qfv
Ubuntu:22.04:LTSsnappy-javano fix listedUBUNTU-CVE-2023-43642
Ubuntu:24.04:LTSsnappy-javano fix listedUBUNTU-CVE-2023-43642
Ubuntu:25.10snappy-javano fix listedUBUNTU-CVE-2023-43642
Ubuntu:26.04:LTSsnappy-javano fix listedUBUNTU-CVE-2023-43642
Ubuntu:26.10snappy-javano fix listedUBUNTU-CVE-2023-43642

Affected products (as reported)

VendorProductVersions
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

References