Intel

AIKIDO-2026-536802

zstd-jni is vulnerable to Use-After-Free

Use-After-FreeCVE-2026-87877 Published 2 days ago

77

High Risk

This Affects:

JAVAzstd-jni
1.3.8-4 - 1.5.7-13
Fixed in 1.5.7-14
Are you affected? Scan for Free

TL;DR

setDict, setLongMax, setLevel, and setRefMultipleDDicts on the zstd stream classes do not check whether the stream is already closed. close() frees the native context but leaves the numeric handle in place, so a later setter writes through that freed pointer and can crash the JVM. The fix rejects those calls after close().

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your code calls a setter on a zstd stream after close().

Background info

zstd-jni is vulnerable to Use-After-Free in versions 1.3.8-4 - 1.5.7-13.

How to fix this

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

Links

Other

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform