CVE-2024-36124 iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash
Attackers can crash the JVM by providing malicious compressed data to the iq80 Snappy library due to an out-of-bounds read vulnerability.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-36124?
CVE-2024-36124 is a medium-severity memory corruption vulnerability in dain snappy, published on 3 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2024-36124?
2 open source packages ship an affected version, including org.iq80.snappy:snappy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.iq80.snappy:snappy Maven | All versions | 0.5 |
org.iq80.snappy:snappy Maven | All versions | 0.5 |
Products include Dain Snappy.
How do I fix CVE-2024-36124?
Upgrade org.iq80.snappy:snappy to 0.5 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-36124 being exploited?
There is no known exploitation of CVE-2024-36124 in the wild and no public exploit code.
Sources
Also known as GHSA-8wh2-6qhj-h7j9, ROOT-APP-MAVEN-CVE-2024-36124.