Home / xerial / snappy-java / CVE-2023-34454
CVE-2023-34454: is it exploited, and which versions of xerial snappy-java are affected and fixed?
CVE-2023-34454 is an integer overflow vulnerability in xerial snappy-java. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: org.xerial.snappy:snappy-java before 1.1.10.1 (GitHub advisory GHSA-fjpj-2g6w-x25r). Fixed in 1.1.10.1 (GitHub advisory GHSA-fjpj-2g6w-x25r). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:38 UTC.
What is CVE-2023-34454?
snappy-java's Integer Overflow vulnerability in compress leads to DoS
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.
From the CVE record by GitHub_M, last updated December 12, 2024, 16:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| xerial | snappy-java | < 1.1.10.1 |
As the CVE record by GitHub_M states it, last updated December 12, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.xerial.snappy:snappy-java | < 1.1.10.1 | 1.1.10.1 | GHSA-fjpj-2g6w-x25r |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 27, 2023. Summary: snappy-java's Integer Overflow vulnerability in compress leads to DoS.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| xerial | snappy-java | before 1.1.10.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:03 UTC.
How severe is CVE-2023-34454?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-34454 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, December 12, 2024)
- EPSS
- 1.47% probability of exploitation activity in the next 30 days, percentile 74.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://github.com/xerial/snappy-java/security/advisories/GHSA-fjpj-2g6w-x25r x_refsource_CONFIRM
- https://github.com/xerial/snappy-java/commit/d0042551e4a3509a725038eb9b2ad1f683674d94 x_refsource_MISC
- https://github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/Snappy.java#L169 x_refsource_MISC
- https://github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/Snappy.java#L422 x_refsource_MISC
- https://github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/Snappy.java x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 6, 2023
- Published
- June 15, 2023, 16:27 UTC
- CVE record updated
- December 12, 2024, 16:25 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:03 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:38 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect snappy-java?
- Oct 26, 2026CVE-2026-116590 xerial snappy-java: improper array index validation
- Oct 9, 2026CVE-2026-108106 xerial snappy-java: memory Allocation with Excessive Size Value
- Oct 9, 2026CVE-2026-108104 xerial snappy-java: double free
- Sep 17, 2026CVE-2026-93452 xerial snappy-java: out-of-bounds write (memory corruption)
- Sep 17, 2026CVE-2026-93451 xerial snappy-java: out-of-bounds write (memory corruption)
- Sep 12, 2026CVE-2026-90559 xerial snappy-java: out-of-bounds write (memory corruption)
- Sep 25, 2023CVE-2023-43642 xerial snappy-java: denial of service (resources allocated without limits)
- Jun 15, 2023CVE-2023-34455 xerial snappy-java: denial of service (resources allocated without limits)
Questions about CVE-2023-34454
Is CVE-2023-34454 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 1.47% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of xerial snappy-java are affected by CVE-2023-34454?
org.xerial.snappy:snappy-java before 1.1.10.1, per the GitHub advisory GHSA-fjpj-2g6w-x25r. The tables above give every range the sources list.
Which version fixes CVE-2023-34454?
1.1.10.1, per the GitHub advisory GHSA-fjpj-2g6w-x25r. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-34454?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-34454?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.