Intel

AIKIDO-2026-954873

zstd-jni is vulnerable to Integer Overflow

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

57

CVE Score

Medium

Integer Overflow

Are you affected? Scan for Free

TL;DR

decompressedDirectByteBufferSize, getDirectByteBufferFrameContentSize, and findDirectByteBufferFrameCompressedSize add src_offset and src_size as signed 32-bit integers. A negative value or a sum that wraps makes the bounds check succeed, and the native code then reads outside the direct buffer and can crash the JVM. The fix rejects negative values and checks that the offset is not past the remaining 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 the direct ByteBuffer frame size methods.

Package

Versions

1.1.1 - 1.5.7-13

Fixed in 1.5.7-14

Background info

zstd-jni is vulnerable to Integer Overflow in versions 1.1.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