cve.bz

CVE-2026-89045 luben zstd-jni: Infinite Loop

5.1 mediumEPSS 0.2%

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

On this page
zstd-jni versions 1.4.8-4 through 1.5.7-13 fail to validate negative length parameters in ZstdInputStreamNoFinalizer.read(), allowing attackers to trigger infinite loops. Attackers can pass negative length values to cause the read method to spin indefinitely while holding the stream monitor, blocking all other threads from accessing the stream.

Severity

CVSS 4.0

5.1 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

4.0 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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; 7th 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: partial, assessed 2026-09-15. 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-835 Loop with Unreachable Exit Condition (Infinite Loop)
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-89045 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-89045?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-89045?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-89045 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.4.8-4 before 1.5.7-14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13zstd-jni-javano fix listedDEBIAN-CVE-2026-89045
Debian14zstd-jni-java1.5.7-23+ds-1DEBIAN-CVE-2026-89045
Ubuntu24.04:LTS, 26.04:LTS, 26.10zstd-jni-javano fix listedUBUNTU-CVE-2026-89045

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this Moderate, consistent with upstream's own CVSS 3.1 score of 4.0, for the same reason: the negative length has to come from the calling application's own logic, not from an attacker-controlled value received directly over a wire protocol.

Only the three-argument ZstdInputStreamNoFinalizer.read(byte[], int, int) overload is reachable this way; the caller has to already have a defect in its own length calculation, a bad remaining-bytes count for example, to hand zstd-jni a negative value in the first place, since InputStream's single-argument read() and read(byte[]) never produce one.

Where it is reachable, the failure is a single thread spinning and holding one stream instance's lock indefinitely, not memory corruption, data exposure, or privilege escalation, and it doesn't propagate to stream instances the hung caller isn't sharing. That combination, a caller-side prerequisite plus an impact bounded to one thread and one stream object, is why this stays Moderate rather than Important despite being a straightforward-looking DoS trigger on paper.

Red Hat's mitigation

If your integration calls read(byte[], int, int) directly with a computed length, for example a remaining-bytes calculation, add a len >= 0 check before the call. If you can't change the call site, avoid sharing a single ZstdInputStreamNoFinalizer instance across threads or requests, so a bad input only stalls the one caller that triggered it instead of every other caller waiting on the same stream.

ProductPackageStateAdvisory
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
Exploit Intelligenceexploit-intelligence/agent-client-rhel9Out of support scope
OpenShift Developer Tools and Servicesjenkins-2-pluginsOut of support scope
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Out of support scope
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel9Out of support scope
Red Hat build of Apache Camel 4 for Quarkus 3zstd-jniFix deferred
Red Hat build of Apache Camel for Spring Boot 4zstd-jniFix deferred
Red Hat build of Apicurio Registry 3zstd-jniFix deferred
Red Hat build of Debezium 3zstd-jniFix deferred
Red Hat Ceph Storage 9libarrowFix deferred
Red Hat Enterprise Linux 8javapackages-tools:201801/apache-commons-compressFix deferred
Red Hat Enterprise Linux 9jmcFix deferred
Red Hat Fuse 7zstd-jniOut of support scope
Red Hat Hardened Imagesmaven3.9Not affected
Red Hat JBoss Enterprise Application Platform 8zstd-jniFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packzstd-jniFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-spark-operator-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch210-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Fix deferred
5 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-89045.

References

Check your stackJSON