Intel

AIKIDO-2026-989226

zstd-jni is vulnerable to Out-of-bounds Read

CVE-2026-87824Published Oct 5, 2026
October 5, 2026

75

CVE Score

High

Out-of-bounds Read

Are you affected? Scan for Free

TL;DR

Zstd.trainFromBufferDirect checks the dictionary buffer capacity but not the samples buffer. Each entry in sampleSizes is copied into the native trainer, so a sum larger than samples.capacity() makes the trainer read past the buffer and crash the JVM. The fix rejects a negative sample size and a total that exceeds the samples buffer.

How do I fix this?

Upgrade the com.github.luben:zstd-jni library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your code calls Zstd.trainFromBufferDirect.

Package

Versions

1.3.3-1 - 1.5.7-13

Fixed in 1.5.7-14

Background info

zstd-jni is vulnerable to Out-of-bounds Read in versions 1.3.3-1 - 1.5.7-13.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea