cve.bz

CVE-2023-34454 xerial snappy-java: Year 2038 problem, Y2K38, Y2038, Epochalypse

7.5 highEPSS 1.5%Fix available

High (7.5) in xerial snappy-java. EPSS 1.5% 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 unchecked multiplications, an integer overflow may occur in versions prior to 1.1.10.1, causing an unrecoverable fatal error. The function `compress(char[] input)` in the file `Snappy.java` receives an array of characters and compresses it. It does so by multiplying the length by 2 and passing it to the rawCompress` function. Since the length is not tested, the multiplication by two can cause an integer overflow and become negative. The rawCompress function then uses the received length and passes it to the natively compiled maxCompressedLength function, using the returned value to allocate a byte array. Since the maxCompressedLength function treats the length as an unsigned integer, it doesn’t care that it is negative, and it returns a valid value, which is casted to a signed integer by the Java engine. If the result is negative, a `java.lang.NegativeArraySizeException` exception will be raised while trying to allocate the array `buf`. On the other side, if the result is positive, the `buf` array will successfully be allocated, but its size might be too small to use for the compression, causing a fatal Access Violation error. The same issue exists also when using the `compress` functions that receive double, float, int, long and short, each using a different multiplier that may cause the same issue. The issue most likely won’t occur when using a byte array, since creating a byte array of size 0x80000000 (or any other negative value) is impossible in the first place. 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.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th 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: no · Technical impact: partial, assessed 2024-12-12. 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-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
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-34454 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34454?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34454?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-34454 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-fjpj-2g6w-x25rMavenorg.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-34454

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 Streams 2.5.0Fixed 2023-09-14RHSA-2023:5165
Red Hat build of Quarkus 2.13.9snappy-javaFixed 2023-12-07RHSA-2023:7700
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
OpenShift Serverlesssnappy-javaAffected
Red Hat Enterprise Linux 8log4j:2/log4jWill not fix
Red Hat Enterprise Linux 9log4jWill not fix
Red Hat JBoss Fuse 6snappy-java-allWill not fix
Red Hat JBoss Fuse 6snappy-java-all-repolibWill not fix
Red Hat JBoss Fuse Service Works 6snappy-java-allOut of support scope
Red Hat JBoss Fuse Service Works 6snappy-java-all-repolibOut of support scope
Red Hat OpenShift Container Platform 3.11openshift3/metrics-cassandraOut of support scope
Red Hat OpenShift Container Platform 3.11openshift3/ose-metrics-cassandraOut of support scope
Red Hat Satellite 6snappy-javaNot affected
Red Hat Satellite 6snappy-java-debuginfoNot affected
Red Hat Software Collectionssnappy-javaWill not fix
streams for Apache Kafkasnappy-javaAffected
streams for Apache Kafkasnappy-java-debuginfoAffected
streams for Apache Kafkasnappy-java-repolibAffected

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-34454.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON