{"id":"CVE-2026-87877","aliases":["CVE-2026-87877"],"related":[],"kind":"vulnerability","state":"published","title":"zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()","summary":"zstd-jni versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"zstd-jni versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.","source":"cvelist"}],"published":"2026-09-09T14:32:45.512Z","modified":"2026-09-09T20:16:54.383Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.7,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"custom","introduced":"1.3.8-4","fixed":"1.5.7-14","status":"affected"}],"vendor":"luben","product":"zstd-jni","repo":"https://github.com/luben/zstd-jni","source":"cvelist"}],"references":[{"url":"https://github.com/luben/zstd-jni/security/advisories/GHSA-2jw3-mg7f-vw4q","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/commit/f38f9a1563113d96d0fc38baee543f7457dd8a8e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/BaseZstdBufferDecompressingStreamNoFinalizer.java","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938","tags":["patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/luben/zstd-jni","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-via-setters-called-after-close","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Yu Bao, PayPal Cyber Security Team"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-09T15:57:38.917Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87877","url":"https://www.cve.org/CVERecord?id=CVE-2026-87877","licence":"CVE Terms of Use","modified":"2026-09-09T15:57:53.652Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87877","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87877","licence":"Public domain","modified":"2026-09-09T20:16:54.383Z"}],"updatedAt":"2026-11-25T22:59:37.761Z","epss":{"score":0.00216,"percentile":0.12765,"date":"2026-12-01T12:00:22.000Z"}}