Impact
zstd-jni libraries between 1.3.3-1 and 1.5.7-13 do not limit the size of sample length arrays passed to Zstd.trainFromBufferDirect, allowing an attacker to provide oversized per-sample lengths that read past the allocated buffer. This out‑of‑bounds memory access can lead to JVM termination, causing the application to crash and become unavailable. The vulnerability is a classic buffer overread (CWE‑125).
Affected Systems
The vulnerability affects the Java library zstd‑jni maintained by the Luben project, covering all released versions from 1.3.3‑1 through 1.5.7‑13. Any application that links against these versions and calls Zstd.trainFromBufferDirect is potentially impacted.
Risk and Exploitability
The CVSS score of 8.7 classifies this flaw as High. The EPSS metric is not available, so no quantified exploitation probability is indicated. It is not listed in the CISA Known Exploited Vulnerabilities catalog. Attackers would need to supply a crafted sample length array to the native code, which implies the vulnerability is exploitable from code executing within the same application context; it is not a remote code execution vulnerability as it merely causes a denial of service.
OpenCVE Enrichment