circular-buffer is vulnerable to Use After Free
38
Low Risk
circular-buffer drops elements before updating the buffer's internal metadata. If an element's Drop implementation panics, the metadata is left in an inconsistent state, causing the buffer to continue treating already-dropped elements as live. When the buffer is later dropped, or reused after the panic is caught, those elements are dropped again, resulting in a use-after-free or double-free vulnerability that is reachable from safe Rust.
You are affected if you are using a version that falls within the vulnerable range and you are using the truncate_back, truncate_front, clear, ir extend_from_slice methods.
circular-buffer is vulnerable to Use After Free in versions 0.1.0 - 2.0.0.
Upgrade the circular-buffer 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