7.5

CVE-2023-34455: snappy-java's unchecked chunk length leads to DoS

Modified
AliasesUBUNTU-CVE-2023-34455CGA-c9cq-m343-p6q5CGA-rxxc-8r3g-mww7
Published 15-06-2023Last modified 13-02-2025

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.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.76%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 15-06-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Snappy Java

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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

5 vendors · 6 products

References

11 links
Show all 11 references