Out-of-bounds Read Affecting com.github.luben:zstd-jni package, versions [,1.5.7-14)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (33rd 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-19659571
  • published10 Sept 2026
  • disclosed9 Sept 2026
  • creditUnknown

Introduced: 9 Sep 2026

NewCVE-2026-87824  (opens in a new tab)
CWE-125  (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 Out-of-bounds Read through Zstd.trainFromBufferDirect0 in src/main/native/jni_zdict.c. An attacker can crash the JVM by supplying a direct samples buffer with an oversized sampleSizes array whose total length exceeds the buffer’s actual capacity. The native dictionary trainer passes the caller-provided lengths to ZDICT_trainFromBuffer without checking that they fit within the direct buffer, so it reads past the end of the sample data and can terminate applications that train dictionaries from untrusted input.

CVSS Base Scores

version 4.0
version 3.1