cve.bz

CVE-2026-87877 luben zstd-jni: Use After Free

7.0 highEPSS 0.2%

High (7.0) in luben zstd-jni. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.0 high
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

CVSS 3.1

7.7 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-87877 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-87877?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-87877?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-87877 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
luben zstd-jnifrom 1.3.8-4 before 1.5.7-14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13zstd-jni-javano fix listedDEBIAN-CVE-2026-87877
Debian14zstd-jni-java1.5.7-23+ds-1DEBIAN-CVE-2026-87877
Ubuntu24.04:LTS, 26.04:LTS, 26.10zstd-jni-javano fix listedUBUNTU-CVE-2026-87877
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0zstd-jni1.5.7.16-160000.1.1SUSE-SU-2026:23858-1 SUSE-SU-2026:23868-1
openSUSELeap 16.0zstd-jni1.5.7.16-160000.1.1openSUSE-SU-2026:21902-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has determined that CVE-2026-87877 affects Red Hat products that include the zstd-jni library in a vulnerable version. The vulnerability can allow memory corruption or denial of service when specific stream methods are called after the stream has been closed.

Red Hat's mitigation

No complete workaround is currently available. As a temporary measure, applications using zstd-jni should not call setDict(), setLongMax(), setLevel(), or setRefMultipleDDicts() on a stream after close(). Upgrade to a Red Hat product release containing zstd-jni 1.5.7-14 or later when available.

ProductPackageStateAdvisory
Red Hat Build of Apache Camel 3.33.3.SP2com.github.luben/zstd-jni:1.5.7.16-rhel8-redhat-00001Fixed 2026-09-22RHSA-2026:70257
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16zstd-jniFixed 2026-09-24RHSA-2026:71675
Red Hat build of Quarkus 3.27.5.SP2zstd-jniFixed 2026-09-21RHSA-2026:69470
Red Hat build of Quarkus 3.33.3.SP2zstd-jniFixed 2026-09-21RHSA-2026:69440
Red Hat JBoss Enterprise Application Platform 8.1zstd-jniFixed 2026-11-04RHSA-2026:95221
OpenShift Developer Tools and Services 4.12ocp-tools-4/jenkins-rhel8:1792044326Fixed 2026-10-22RHSA-2026:88152
OpenShift Developer Tools and Services 4.13ocp-tools-4/jenkins-rhel8:1792044327Fixed 2026-10-22RHSA-2026:88149
OpenShift Developer Tools and Services 4.14ocp-tools-4/jenkins-rhel8:1792044382Fixed 2026-10-22RHSA-2026:88151
OpenShift Developer Tools and Services 4.15ocp-tools-4/jenkins-rhel8:1792044386Fixed 2026-10-22RHSA-2026:88150
OpenShift Developer Tools and Services 4.16ocp-tools-4/jenkins-rhel9:1792040287Fixed 2026-10-22RHSA-2026:88156
Exploit Intelligenceexploit-intelligence/agent-client-rhel9Affected
OpenShift Developer Tools and Servicesjenkins-2-pluginsAffected
Red Hat build of Apache Camel 4 for Quarkus 3zstd-jniAffected
Red Hat build of Apicurio Registry 3zstd-jniAffected
Red Hat build of Debezium 3zstd-jniAffected
Red Hat Ceph Storage 9libarrowFix deferred
Red Hat Enterprise Linux 8javapackages-tools:201801/apache-commons-compressNot affected
Red Hat Enterprise Linux 9jmcAffected
Red Hat Fuse 7zstd-jniNot affected
Red Hat Hardened Imagesmaven3.9Not affected
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-87877.

References

Check your stackJSON