simd-json is vulnerable to Undefined Behavior
20
CVE Score
Low
Undefined Behavior
simd-json parses JSON structure with unsafe native and NEON SIMD stage-1 code. The NEON stage-1 path stores structural indexes with an alignment-assuming write into an under-aligned buffer, causing undefined behavior that can corrupt memory, and on runtime-detection builds without the portable feature the native fallback skips UTF-8 validation and treats invalid UTF-8 as a valid string. A zero-length buffer allocation also invokes undefined behavior. The fix switches to unaligned writes, adds a native UTF-8 pre-validation step before structural-bit detection, and avoids the zero-size allocation.
Upgrade the simd-json library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.3.21 - 0.17.1
Fixed in 0.17.2simd-json is vulnerable to Undefined Behavior in versions 0.3.21 - 0.17.1.
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.