- Veröffentlicht
- 15.06.2023
- Zuletzt geändert
- 17.11.2026
- EPSS (30 Tage)
- 1.5 %
- CVSS-Vektor
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Beschreibung
Originaltext der Quelle, nicht übersetzt.
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.
Status beim Hersteller
Red Hat stuft seine Produktlinien ein: 8 betroffen, 2 behoben, 2 nicht betroffen.
OpenShift Serverless
BetroffenFix ausstehend
snappy-java
Red Hat Enterprise Linux 8
Betroffenwird nicht behoben
log4j, log4j-jcl, log4j-slf4j, log4j-web
Red Hat Enterprise Linux 9
Betroffenwird nicht behoben
log4j, log4j-jcl, log4j-slf4j
Red Hat JBoss Fuse 6
Betroffenwird nicht behoben
snappy-java-all, snappy-java-all-repolib
Red Hat JBoss Fuse Service Works 6
Betroffenaußerhalb des Supports
snappy-java-all, snappy-java-all-repolib
Red Hat OpenShift Container Platform 3.11
Betroffenaußerhalb des Supports
openshift3/ose-metrics-cassandra
Red Hat Software Collections
Betroffenwird nicht behoben
snappy-java
streams for Apache Kafka
BetroffenFix ausstehend
snappy-java, snappy-java-repolib
Nicht betroffen (2)
Logging Subsystem for Red Hat OpenShiftNicht betroffenverwundbarer Code nicht enthaltenopenshift-logging/elasticsearch6-rhel8
Red Hat Satellite 6Nicht betroffenverwundbarer Code nicht enthaltensnappy-java
Betroffene Pakete im beobachteten Stack
Red Hat:enterprise_linux:8log4jkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:8log4j-jclkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:8log4j-slf4jkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:8log4j-webkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:9log4jkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:9log4j-jclkein Fix bekanntCVE-2023-34454
Red Hat:enterprise_linux:9log4j-slf4jkein Fix bekanntCVE-2023-34454
Red Hat:rhel_software_collections:3snappy-javakein Fix bekanntCVE-2023-34454
Weitere betroffene Pakete (15)
CVExerial/snappy-javakein Fix bekanntCVE-2023-34454
Docker Hardened Images:Debian:13druid-36kein Fix bekanntDHI-ysim-6523-ndmu-e3lo
Docker Hardened Images:Debian:13druid-36-fipskein Fix bekanntDHI-ysim-6523-ndmu-e3lo
Mavenorg.xerial.snappy:snappy-java1.1.10.1GHSA-fjpj-2g6w-x25r
NVDxerial:snappy-java1.1.10.1CVE-2023-34454
TuxCare:Mavenorg.xerial.snappy:snappy-java1.1.8.4.tuxcareCLSA-2024-1732492826
Ubuntu:14.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:16.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:18.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:20.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:22.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:24.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:25.10snappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:26.04:LTSsnappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Ubuntu:26.10snappy-javakein Fix bekanntUBUNTU-CVE-2023-34454
Empfohlene Prüfung
- Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
- Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
- Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login) ist aus dem CVSS-Vektor abgeleitet.
Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.
Referenzen
- github.com/xerial/snappy-java/security/advisories/GHSA-fjpj-2g6w-x25r
- github.com/xerial/snappy-java/commit/d0042551e4a3509a725038eb9b2ad1f683674d94
- github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/Snappy.java
- github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/Snappy.java
- github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/Snappy.java
- scout.docker.com/v/DHI-ysim-6523-ndmu-e3lo
- nvd.nist.gov/vuln/detail/CVE-2023-34454
- github.com/advisories/GHSA-fjpj-2g6w-x25r
- access.redhat.com/security/cve/CVE-2023-34454
- ubuntu.com/security/CVE-2023-34454
- people.ubuntu.com/~ubuntu-security/cve/CVE-2023-34454
- github.com/xerial/snappy-java
- www.cve.org/CVERecord
- security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-34454.json
- bugzilla.redhat.com/show_bug.cgi