CVE-2026-116590

snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWrite

Published Oct 26, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
snappy-java is a Java port of the snappy, a fast C++ compresser/decompresser developed by Google. Prior to 1.1.10.9, Snappy.arrayCopy(Object src, int offset, int byteLength, Object dest, int destOffset) passes caller-supplied ranges to native memcpy without validating either array, allowing negative or oversized byteLength and offset values to read or write outside array bounds and crash the JVM. SnappyOutputStream.rawWrite and SnappyInputStream.rawRead, including their typed-array write and read methods, pass caller-controlled ranges through this primitive, and typed-array byte-size calculations can overflow int. This issue is fixed in version 1.1.10.9.

Analysis

AI-generated

Technical impact

snappy-java contains a flaw in Snappy.arrayCopy where caller supplied ranges are passed directly to native memcpy without validating array bounds. The flaw allows negative or oversized byteLength and offset values to read or write outside array bounds, causing a JVM crash. The crash leads to denial of service for any application that uses the affected Snappy functions, potentially impacting server availability.

Affected Systems

The vulnerability affects the xerial snappy-java library for all Java applications using versions prior to 1.1.10.9. The specific functions impacted are Snappy.arrayCopy(Object, int, int, Object, int), SnappyOutputStream.rawWrite, and SnappyInputStream.rawRead and their typed-array variants. The remedy applies to any environment that has the library installed; no hardware or OS specific constraints are listed.

Risk and Exploitability

The CVSS score of 5.9 indicates a medium severity and the EPSS score is not reported, so the likelihood of exploitation is unknown. The vulnerability is not listed in CISA KEV, suggesting no known public exploitation at the time. The flaw can be triggered by any caller that provides suspicious ranges, so any code that constructs Snappy compression or decompression data may be able to cause a crash. Attack vectors are likely local exploitation where the library is used with untrusted input, or remote if the application exposes the library to external data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade xerial snappy-java to version 1.1.10.9 or later where the bounds check has been added.
  • Audit all uses of Snappy.arrayCopy, SnappyOutputStream.rawWrite, and SnappyInputStream.rawRead in the codebase and add defensive checks for valid ranges before calling these methods.
  • Monitor application logs for JVM crashes or abnormal termination, and implement application-level watchdog or graceful restart mechanisms to mitigate downtime if an upgrade is delayed.

Generated by OpenCVE AI on October 27, 2026 at 08:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xqrx-qh46-34m7 snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWrite
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Xerial
Xerial snappy-java
Vendors & Products Xerial
Xerial snappy-java
Type Values Removed Values Added
Description snappy-java is a Java port of the snappy, a fast C++ compresser/decompresser developed by Google. Prior to 1.1.10.9, Snappy.arrayCopy(Object src, int offset, int byteLength, Object dest, int destOffset) passes caller-supplied ranges to native memcpy without validating either array, allowing negative or oversized byteLength and offset values to read or write outside array bounds and crash the JVM. SnappyOutputStream.rawWrite and SnappyInputStream.rawRead, including their typed-array write and read methods, pass caller-controlled ranges through this primitive, and typed-array byte-size calculations can overflow int. This issue is fixed in version 1.1.10.9.
Title snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWrite
Weaknesses CWE-129
CWE-787
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-129

    Improper Validation of Array Index

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 3:12 PM
Reserved
Oct 26, 2026, 3:03 PM
Status
Awaiting Analysis
Published
Oct 26, 2026, 10:16 PM
Modified
Oct 30, 2026, 4:17 PM
Severity
Moderate
Public date
Oct 26, 2026, 9:48 PM