{"id":"CVE-2024-36124","aliases":["CVE-2024-36124","GHSA-8wh2-6qhj-h7j9"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\niq80 Snappy performs out-of-bounds read access when uncompressing certain data, which can lead to a JVM crash.\n\n### Details\nWhen 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.\n\niq80 Snappy is not actively maintained anymore. As quick fix users can upgrade to version 0.5, but in the long term users should prefer migrating to the Snappy implementation in https://github.com/airlift/aircompressor (version 0.27 or newer).\n\n### Impact\nWhen uncompressing data from untrusted users, this can be exploited for a denial-of-service attack by crashing the JVM.","format":"markdown","source":"ghsa"},{"lang":"es","text":"iq80 Snappy es una librería de compresión/descompresión. Al descomprimir ciertos datos, Snappy intenta leer fuera de los límites de las matrices de bytes dadas. Debido a que Snappy usa la clase JDK `sun.misc.Unsafe` para acelerar el acceso a la memoria, no se realizan comprobaciones de los límites adicionales y esto tiene consecuencias de seguridad similares a las del acceso fuera de los límites en C o C++, es decir, puede conducir a no comportamiento determinista o bloquear la JVM. iq80 Snappy ya no recibe mantenimiento activo. Como solución rápida, los usuarios pueden actualizar a la versión 0.5.","source":"nvd"}],"published":"2024-06-03T14:25:58.628Z","modified":"2026-09-10T03:50:15.013Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 0.5","status":"affected"}],"vendor":"dain","product":"snappy","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.5","status":"affected"}],"vendor":"xerial","product":"snappy-java","cpe":"cpe:2.3:a:xerial:snappy-java:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5"}],"ecosystem":"Maven","package":"org.iq80.snappy:snappy","purl":"pkg:maven/org.iq80.snappy/snappy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.5"}],"vendor":"dain","product":"snappy","cpe":"cpe:2.3:a:dain:snappy:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dain/snappy/security/advisories/GHSA-8wh2-6qhj-h7j9","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36124","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dain/snappy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-06T18:26:25.852Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36124","url":"https://www.cve.org/CVERecord?id=CVE-2024-36124","licence":"CVE Terms of Use","modified":"2024-09-05T14:44:12.984Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8wh2-6qhj-h7j9","url":"https://github.com/advisories/GHSA-8wh2-6qhj-h7j9","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.013Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36124","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36124","licence":"Public domain","modified":"2026-06-17T07:36:09.277Z"}],"updatedAt":"2026-11-25T22:58:41.382Z","epss":{"score":0.00487,"percentile":0.43544,"date":"2026-12-01T12:00:22.000Z"}}