Infinite loop Affecting com.github.luben:zstd-jni package, versions [,1.5.7-14)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMGITHUBLUBEN-19778367
  • published14 Sept 2026
  • disclosed10 Sept 2026
  • creditUnknown

Introduced: 10 Sep 2026

NewCVE-2026-89045  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

Overview

Affected versions of this package are vulnerable to Infinite loop due to negative length validation in read(byte[], int, int) in src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java. An attacker can spin a caller thread indefinitely by supplying a negative len to read(), which leaves the method retrying without making progress. Because the method is synchronized, the stuck read holds the stream’s monitor and blocks other threads that try to use the same ZstdInputStreamNoFinalizer instance, causing a thread-exhaustion denial of service.

CVSS Base Scores

version 4.0
version 3.1