iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-36124
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 22:07 UTC · Revision 1
Source evidence
iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash
core-osv · Original sourcePublished 3 Jun 2024, 14:25 UTC
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.
osv:CVE-2024-36124
Complete source record
{
"id": "b68b5ae2db416f0d1236855967d055b4f3cd0753ac415a64424c5cb50099397a",
"url": "https://osv.dev/vulnerability/CVE-2024-36124",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "iq80 Snappy has an out-of-bounds read when uncompressing data, leading to JVM crash",
"summary": "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.",
"evidence": "osv:CVE-2024-36124",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-36124",
"aliases": [
"CVE-2024-36124",
"GHSA-8wh2-6qhj-h7j9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dain/snappy",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fc4decaac1bb21268c4e80d8a4fbbf5cda82ba91"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:dain:snappy:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"snappy-0.4",
"snappy-0.3",
"snappy-0.2",
"snappy-0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36124.json"
}
}
],
"modified": "2026-10-28T02:30:24.154690299Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36124.json",
"https://github.com/dain/snappy/security/advisories/GHSA-8wh2-6qhj-h7j9",
"https://nvd.nist.gov/vuln/detail/CVE-2024-36124"
],
"provider_metadata": {
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36124.json"
}
},
"related_cves": [
{
"value": "CVE-2024-36124",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 490461,
"published_at": "2024-06-03T14:25:58.628+00:00"
}