Luben zstd-jni
zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect
zstd-jni before 1.5.7-14 fails to validate the samples buffer capacity in Zstd.trainFromBufferDirect, allowing attackers to read past buffer boundaries by supplying oversized per-sample lengths. Attackers can trigger out-of-bounds memory access by providing crafted sample length arrays that cause the native implementation to walk past the buffer allocation, resulting in JVM termination.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-125
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
luben zstd-jni
- >= 1.3.3-1, < 1.5.7-14
Fixed in 1.5.7-14
Mitigation
Upgrade zstd-jni to 1.5.7-14 or later.
References
- Vendor advisory github.com/luben/zstd-jni/security/advisories/…
- Patch github.com/luben/zstd-jni/commit/bba6cfca2c089…
- Release notes github.com/luben/zstd-jni/releases/tag/v1.5.7-…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.