id-map is vulnerable to Use of Uninitialized Resource
75
High Risk
Affected versions of this package are vulnerable to Uninitialized Memory Drop in IdMap::from_iter Constructor. Due to a flaw in id_map::IdMap::from_iter, the constructor may create objects where the values vector has a length smaller than its capacity, while the ids field is initialized using the larger capacity value. When such an IdMap is dropped, its destructor erroneously assumes all values.capacity() elements are initialized and attempts to iterate over and drop them, dereferencing uninitialized memory. This causes undefined behavior (e.g., segmentation faults or heap corruption). An attacker could exploit this by supplying an iterator that yields fewer items than allocated capacity, then triggering the destructor, potentially leading to denial of service via crash or, in some environments, arbitrary code execution by manipulating uninitialized memory layouts.
You are affected if you are using a version that falls within the vulnerable range.
id-map is vulnerable to Use of Uninitialized Resource in versions 0.1.6 - 0.2.1.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant