CVE-2026-87877zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()
- 7.0HighCVSS base score
- 0.22%Exploitation in 30 daysEPSS · top 87% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- GitHub Security Advisory (GHSA-2jw3-mg7f-vw4q) (opens in a new tab)vendor-advisoryexploit
Timeline
ID reserved
By VulnCheck
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| VulnCheckCNA (assigner) | 4.0 | High7.0 | 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 |
| VulnCheckCNA (assigner) | 3.1 | High7.7 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVDNVD · Awaiting Analysis | 4.0 | High7.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.22% · top 87% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.0.
Affected products
References
References9
- GitHub Security Advisory (GHSA-2jw3-mg7f-vw4q) (opens in a new tab)vendor-advisoryexploit
- Fix commit: closed-state guards on BaseZstdBufferDecompressingStreamNoFinalizer (opens in a new tab)patch
- Fix commit: closed-state guards on the input and output stream setters (opens in a new tab)patch
- Setters without the closed-state guard that readInternal already has, at v1.5.7-13 (opens in a new tab)technical-description
- final stream handle retained after close at v1.5.7-13 (opens in a new tab)technical-description
- zstd-jni v1.5.7-14 Release Notes (opens in a new tab)release-notes
- Commit that made setDict write through the retained native stream handle (first released in 1.3.8-4) (opens in a new tab)technical-descriptionpatch
- https://github.com/luben/zstd-jni (opens in a new tab)product
- VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close() (opens in a new tab)third-party-advisory
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-75024 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-87877)Record last updated .