What’s Vulnerable › Vulnerabilities
CVE-2024-36124: iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-06-03 · updated 2026-06-17
- Weakness: CWE-125
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.
Affected products
- dain snappy: before 0.5 — fixed in 0.5
How to fix
Upgrade to a fixed version: dain snappy 0.5. Check the vendor advisory for mitigations.
References
- https://github.com/dain/snappy/security/advisories/GHSA-8wh2-6qhj-h7j9
- https://github.com/dain/snappy/security/advisories/GHSA-8wh2-6qhj-h7j9
Get alerted when CVE-2024-36124 or the next vulnerability affects your stack