GHSA-q233-g92q-qxp6: High severity maven/org.xerial.snappy:snappy-java vulnerability

Published Oct 27, 2026
·
Updated

Impact Several decompression paths in snappy-java allocate an output buffer sized by the uncompressed length declared in the first bytes of the compressed data, before decompressing or validating it. A few bytes of crafted input can therefore force an allocation of up to 2 GB, causing OutOfMemoryError (denial of service), or a NegativeArraySizeException for declared lengths of 2^31 or more.

Affected entry points include Snappy.uncompress(byte[]), Snappy.uncompressString, the Snappy.uncompressArray methods, SnappyInputStream, and SnappyFramedInputStream. The maxChunkSize limit added for CVE-2023-43642 bounds only the compressed chunk length, so it does not prevent this.

Patches Fixed in 1.1.10.9 (#739). Snappy.uncompressedLength() now rejects negative declared lengths, and lengths larger than any valid Snappy stream of the given size can produce. The densest Snappy element expands 3 bytes to 64, so the limit is 64/3 of the compressed size. Allocations are therefore proportional to the input actually received.

Workarounds Before decompressing untrusted data, check that Snappy.uncompressedLength(input) is within an application-specific limit.

Affected Software

1 affected componentFixes available
maven/org.xerial.snappy:snappy-java<=1.1.10.8
1.1.10.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.xerial.snappy:snappy-java to a version that resolves this vulnerability.

    Fixed in 1.1.10.9
  2. Upgrade

    Upgrade snappy-java to a version that resolves this vulnerability.

    Fixed in 1.1.10.9Patch #739
  3. Compensating control

    Before decompressing untrusted data, check that Snappy.uncompressedLength(input) is within an application-specific limit.

Event History

Oct 27, 2026
Advisory Published
via GitHub·03:33 PM
Data Sourced
via GitHub·03:33 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to denial of service?

Applications using snappy-java to decompress untrusted input through Snappy.uncompress(byte[]), Snappy.uncompressString, the Snappy.uncompress*Array methods, SnappyInputStream, or SnappyFramedInputStream are exposed. A remote attacker can send crafted compressed data that declares a very large uncompressed length.

2

Does the maxChunkSize limit protect against this issue?

No. maxChunkSize limits the compressed chunk length, but the vulnerable allocation is based on the declared uncompressed length, so it does not prevent oversized output-buffer allocation.

3

What version contains the fix?

The issue is fixed in snappy-java 1.1.10.9. The fix rejects negative declared lengths and lengths that exceed what a valid Snappy stream of the received size could produce.

4

What can be done if upgrading is not immediately possible?

Before decompressing untrusted data, call Snappy.uncompressedLength(input) and reject values above an application-specific limit. This prevents decompression of inputs claiming an unacceptable output size.

5

How can a crafted input cause an exception?

A declared uncompressed length can trigger allocation of up to 2 GB and cause OutOfMemoryError. Declared lengths of 2^31 or greater can instead cause NegativeArraySizeException.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203