zstd-jni is vulnerable to Use-After-Free
73
High Risk
ZstdCompressCtx.loadDict takes the dictionary lock, stores the native dictionary pointer, and releases the lock before later compression calls. Closing the dictionary frees that native object while the context still uses the pointer, so the next compress call uses freed memory and can crash the JVM. The fix keeps the dictionary lock until the context is closed.
You are affected if you are using a version that falls within the vulnerable range and your code closes a dictionary after ZstdCompressCtx.loadDict.
zstd-jni is vulnerable to Use-After-Free in versions 1.4.4-2 - 1.5.7-13.
Upgrade the com.github.luben:zstd-jni library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.