snappy-java DoS via oversized chunk in SnappyInputStream (v<1.1.10.4)
CVE-2023-43642 Published on September 25, 2023

Missing upper bound check on chunk length in snappy-java
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.

Github Repository NVD

Vulnerability Analysis

CVE-2023-43642 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Type

Allocation of Resources Without Limits or Throttling

The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.


Products Associated with CVE-2023-43642

stack.watch emails you whenever new vulnerabilities are published in Xerial Snappy Java or Oracle. Just hit a watch button to start following.

 
 

Affected Versions

xerial snappy-java Version < 1.1.10.4 is affected by CVE-2023-43642

Vulnerable Packages

The following package name and versions may be associated with CVE-2023-43642

Package Manager Vulnerable Package Versions Fixed In
maven org.xerial.snappy:snappy-java <= 1.1.10.3 1.1.10.4

Exploit Probability

EPSS
0.25%
Percentile
48.10%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.