cve.bz

CVE-2023-34455 xerial snappy-java

7.5 highExploit referenceEPSS 1.8%Fix available

High (7.5) in xerial snappy-java. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.xerial.snappy:snappy-java 1.1.10.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-12-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-34455 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34455?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34455?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-34455 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xerial:snappy-javabefore 1.1.10.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qcwq-55hx-v3vhMavenorg.xerial.snappy:snappy-java<1.1.10.11.1.10.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 6 moresnappy-javano fix listedUBUNTU-CVE-2023-34455

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7snappy-javaFixed 2024-09-19RHSA-2024:6893
Red Hat AMQ Streams 2.5.0Fixed 2023-09-14RHSA-2023:5165
Red Hat build of Quarkus 2.13.9snappy-javaFixed 2023-12-07RHSA-2023:7700
RHINT Camel-K 1.10.5snappy-javaFixed 2024-01-10RHSA-2024:0148
RHINT Camel-Springboot 3.18.3.2snappy-javaFixed 2023-09-13RHSA-2023:5147
RHINT Camel-Springboot 3.20.2snappy-javaFixed 2023-09-13RHSA-2023:5148
RHINT Service Registry 2.5.4 GAsnappy-javaFixed 2023-12-05RHSA-2023:7653
A-MQ Clients 2snappy-javaNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
OpenShift Serverlesssnappy-javaWill not fix
Red Hat build of Debezium 1snappy-javaAffected
Red Hat build of Debezium 2snappy-javaAffected
Red Hat build of OptaPlanner 8snappy-javaAffected
Red Hat Data Grid 8snappy-javaNot affected
Red Hat Decision Manager 7snappy-javaWill not fix
Red Hat Enterprise Linux 8log4j:2/log4jWill not fix
Red Hat Enterprise Linux 9log4jWill not fix
Red Hat Fuse 7snappy-javaNot affected
Red Hat Integration Camel Quarkus 2snappy-javaAffected
Red Hat JBoss Data Grid 7snappy-javaOut of support scope
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-34455.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON