sonic-rs is vulnerable to Use After Free
72
High Risk
Affected versions of this package have a Use-After-Free vulnerability in the into_object_iter function. If the ObjectJsonIter is dropped prematurely, borrowed keys become dangling pointers to freed memory. Accessing these keys can result in undefined behavior, including segmentation faults or data leaks. An attacker can exploit this by using crafted JSON input to retain keys after the iterator is destroyed, potentially causing crashes or enabling remote code execution.
You are affected if you are using a version that falls within the vulnerable range.
sonic-rs is vulnerable to Use After Free in versions 0.3.0 - 0.5.1.
Upgrade the sonic-rs 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.

SOC 2Compliant
ISO 27001Compliant