stabby is vulnerable to Out-of-Bounds Read
59
Medium Risk
The try_drain method on stabby's ABI-stable Vec validates the requested range with a reversed comparison. Valid ranges are rejected, while a reversed range whose bounds both exceed the vector length passes the check and reaches the unsafe path. The method then calls set_len past the initialized region and returns a Drain that iterates over uninitialized memory, causing undefined behavior and possible exposure of uninitialized heap contents. The fix reverses the comparison so out-of-range and negative-size ranges return without touching memory.
You are affected if you are using a version that falls within the vulnerable range and your application calls try_drain with untrusted range bounds.
stabby is vulnerable to Out-of-Bounds Read in versions 2.0.0 - 72.1.8.
Upgrade the stabby and/or the stabby-abi 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