Vulnerability · Published Sep 9, 2026 · Assigned by VulnCheck

CVE-2026-87877zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()

High 7.7

In plain English

A high-severity use-after-free in zstd-jni from luben. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.2%top 87.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12zstd-jni-javano fix listedDEBIAN-CVE-2026-87877
Debian:13zstd-jni-javano fix listedDEBIAN-CVE-2026-87877
Debian:14zstd-jni-java1.5.7-23+ds-1DEBIAN-CVE-2026-87877
Ubuntu:24.04:LTSzstd-jni-javano fix listedUBUNTU-CVE-2026-87877
Ubuntu:26.04:LTSzstd-jni-javano fix listedUBUNTU-CVE-2026-87877
Ubuntu:26.10zstd-jni-javano fix listedUBUNTU-CVE-2026-87877

Affected products (as reported)

VendorProductVersions
luben zstd-jni 1.3.8-4 – before 1.5.7-14

Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

References