zstd-jni is vulnerable to Use-After-Free
73
CVE Score
High
Use-After-Free
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.
Upgrade the com.github.luben:zstd-jni library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your code closes a dictionary after ZstdCompressCtx.loadDict.
1.4.4-2 - 1.5.7-13
Fixed in 1.5.7-14zstd-jni is vulnerable to Use-After-Free in versions 1.4.4-2 - 1.5.7-13.
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.
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.