Read the docs
TI-2023-17280 Aliases CVE-2023-34454GHSA-fjpj-2g6w-x25r

snappy-java's Integer Overflow vulnerability in compress leads to DoS

Priority HIGH 66CWE-190Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 2 fixed, 8 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-190 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01469 73rd percentileScored 2026-11-07
Fix Partial snappy-java (xerial): 1.1.10.1org.xerial.snappy:snappy-java (Maven): 1.1.10.1Red Hat: 2 advisoriesRed Hat: 2 fixed, 8 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
xerialsnappy-javabefore 1.1.10.11.1.10.1Patch availableCNA
—org.xerial.snappy:snappy-java (Maven)before 1.1.10.11.1.10.1Patch availableGHSA-fjpj-2g6w-x25r
  • snappy-java Vendorxerial Affected before 1.1.10.1 Fixed in 1.1.10.1 Patch available CNA
  • org.xerial.snappy:snappy-java (Maven) Vendor— Affected before 1.1.10.1 Fixed in 1.1.10.1 Patch available GHSA-fjpj-2g6w-x25r

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:xerial:snappy-java:*:*:*:*:*:*:*:*before 1.1.10.1Vulnerablexerial
  • cpe:2.3:a:xerial:snappy-java:*:*:*:*:*:*:*:* Versions before 1.1.10.1 Vulnerable ·xerial

Remediation

  • Fix · CNA snappy-java (xerial) Fixed in 1.1.10.1
  • Fix · GHSA-fjpj-2g6w-x25r org.xerial.snappy:snappy-java (Maven) Fixed in 1.1.10.1 Advisory →

Red Hat 2 advisories

  • RHSA-2023:7700 Released 2023-12-07 · Red Hat rating Important
    Red Hat build of Quarkus 2.13.9 release and security update
    • Red Hat build of Quarkus 2.13.9
  • RHSA-2023:5165 Released 2023-09-14 · Red Hat rating Important
    Red Hat AMQ Streams 2.5.0 release and security update
    • Red Hat AMQ Streams 2.5.0

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift ServerlessAffectedNo fix yet
Red Hat Enterprise Linux 8AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 9AffectedNo fix planned: Will not fix
Red Hat JBoss Fuse 6AffectedNo fix planned: Will not fix
Red Hat JBoss Fuse Service Works 6AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 3.11AffectedNo fix planned: Out of support scope
Red Hat Software CollectionsAffectedNo fix planned: Will not fix
streams for Apache KafkaAffectedNo fix yet
Red Hat AMQ Streams 2.5.0Fixed RHSA-2023:5165
Red Hat build of Quarkus 2.13.9Fixed RHSA-2023:7700
Not affected: 2 products
  • Logging Subsystem for Red Hat OpenShift
  • Red Hat Satellite 6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-34454
  2. 2026-10-03 Alias added: GHSA-fjpj-2g6w-x25r
  3. 2026-10-27 Fix available: Red Hat build of Quarkus 2.13.9 · Red Hat

References

  • TI-2023-23368 Missing upper bound check on chunk length in snappy-java CVSS 3.1HIGH 7.5
  • TI-2023-17281 snappy-java's unchecked chunk length leads to DoS CVSS 3.1HIGH 7.5
  • TI-2023-17279 snappy-java's Integer Overflow vulnerability in shuffle leads to DoS CVSS 3.1HIGH 7.5

Sources