GHSA-xqrx-qh46-34m7

    Dashboard / Vulnerabilities / GHSA-xqrx-qh46-34m7

    GHSA-xqrx-qh46-34m7

    Published: 27 Oct 2026Last Modified: 27 Oct 2026

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

    Details: ### Impact `Snappy.arrayCopy(Object src, int offset, int byteLength, Object dest, int destOffset)` called a native `memcpy` without validating the ranges. A negative or oversized `byteLength` or offset read or wrote outside the arrays and crashed the JVM. `SnappyOutputStream.rawWrite` and `SnappyInputStream.rawRead`, and therefore the typed-array `write`/`read` methods, pass caller-supplied ranges to this method. ### Patches Fixed in 1.1.10.9 (#741). `Snappy.arrayCopy` checks both ranges before copying. The stream `read`/`write` methods validate offsets and lengths, and reject typed-array ranges whose byte size overflows `int`. ### Workarounds Validate offsets and lengths before calling these methods.

    Affected packages

    Package

    Name: org.xerial.snappy:snappy-java

    Purl: pkg:maven/org.xerial.snappy/snappy-java

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.1.10.9

    Affected versions

    1.0.1-rc1
    1.0.1-rc2
    1.0.1-rc3
    1.0.1-rc4
    1.0.3
    1.0.3-rc1
    1.0.3-rc2
    1.0.3-rc3
    1.0.3-rc4
    1.0.3.1
    1.0.3.2
    1.0.3.3
    1.0.4
    1.0.4.1
    1.0.5
    1.0.5-M1
    1.0.5-M2
    1.0.5-M3
    1.0.5-M4
    1.0.5.1
    1.0.5.2
    1.0.5.3
    1.0.5.4

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High