Skip to main content
Public proof of conceptFix available

CVE-2023-34455

A public proof of concept exists; no exploitation attested.

  • Published2023-06-15
  • Fixed in1.1.10.1
  • WeaknessCWE-770

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-06-1518:15CVE publishedNVD

Versions per branch

NVD · OSV
Xerial snappy-java
BranchAffectedFixed in
1.1< 1.1.10.11.1.10.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • xerial snappy-java
    Affected
    • = < 1.1.10.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-06-15

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • druidWolfiall versions · fixed in 37.0.0-r0
  • druidChainguardall versions · fixed in 37.0.0-r0
  • hadoop-fips-3.3.6Chainguardall versions · fixed in 3.3.6-r15
  • hadoop-fips-3.3.6Chainguardall versions · fixed in 3.3.6-r21
  • io.root.org.xerial.snappy:snappy-javaRoot:Mavenall versions · fixed in 1.1.10.0-root.io.1
  • io.root.org.xerial.snappy:snappy-javaRoot:Mavenall versions · fixed in 1.1.10.0-root.io.2
  • io.root.org.xerial.snappy:snappy-javaRoot:Mavenall versions · fixed in 1.1.10.1-root.io.1
  • io.root.org.xerial.snappy:snappy-javaRoot:Mavenall versions · fixed in 1.1.10.1-root.io.2

20 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-34455 Red Hat Product Security7 products fixed · 22 known affected

    snappy-java: Unchecked chunk length leads to DoS

    snappy-java as a component of OpenShift Serverless · snappy-java as a component of Red Hat build of Debezium 1 · snappy-java as a component of Red Hat build of Debezium 2 · +19 more

  • RHSA-2024:6893 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat AMQ Broker 7.12.0 release and security update

  • RHSA-2024:0148 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Integration Camel K 1.10.5 release and security update

  • RHSA-2023:7700 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat build of Quarkus 2.13.9 release and security update

  • RHSA-2023:7653 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Service Registry (container images) release and security update [2.5.4 GA]

  • RHSA-2023:5165 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat AMQ Streams 2.5.0 release and security update

2 more advisories

Full record on NVD

Fix

  1. Update Xerial snappy-java to 1.1.10.1
  2. Vendor fix Red Hat Product Security RHSA-2024:6893 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings. The References section of this erratum contains a download link (you must log in to download the update).
  3. Vendor fix Red Hat Product Security RHSA-2024:0148 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
  4. Vendor fix Red Hat Product Security RHSA-2023:7700 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2023:5147 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. No fix available, says the vendor Red Hat Product Security CVE-2023-34455 · 5 productsAffected
  7. No fix planned, says the vendor Red Hat Product Security CVE-2023-34455 · 5 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-12-11
  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-770known since 2026-10-23
  • NVDweakness (CWE)CWE-770read 2026-10-23
  • FIRST EPSSEPSS score1.8 %2026-11-08
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2023-06-15

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2023-06-15
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-qcwq-55hx-v3vh

Frequently asked questions

What is CVE-2023-34455?

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.

Is CVE-2023-34455 actively exploited?

A proof-of-concept exploit exists for CVE-2023-34455, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-34455?

CVE-2023-34455 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running snappy-java? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record