CVE-2021-30457
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the id-map crate through 2021-02-26 for Rust. A double free vulnerability can occur in remove_set upon a panic in a Drop implementation (RustSec Advisory, NVD).

Technical details

The vulnerability occurs in the remove_set function when removing a set of elements. The function calls ptr::drop_in_place on each element to be removed. If the Drop implementation of one of these elements panics, then the previously dropped elements can be dropped again, leading to a double free condition. The issue has been assigned a CVSS v3.1 base score of 9.8 CRITICAL with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

A successful exploitation of this vulnerability could lead to memory corruption through double freeing of memory locations. This could potentially result in program crashes, arbitrary code execution, or other undefined behavior when the vulnerable code path is triggered (RustSec Advisory).

Exploitability

The vulnerability can be triggered when using the remove_set function with elements that have a Drop implementation that can panic. No public exploits are known at this time, but the vulnerability is well-documented and could be exploited by crafting specific conditions that cause a panic during the drop operation (RustSec Advisory).

Mitigation and workarounds

As of the advisory date, there are no patched versions available. Users should avoid using the remove_set function with elements that might panic during their Drop implementation, or ensure proper error handling around these operations (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54788HIGH7.5
  • Rust logoRust
  • datadog-opentelemetry
NoYesAug 28, 2026
RUSTSEC-2026-0278HIGH7.3
  • Rust logoRust
  • zbus_polkit
NoYesAug 31, 2026
GHSA-2vh6-hw4j-32wwMEDIUM6.5
  • Rust logoRust
  • gix-packetline
NoYesAug 28, 2026
CVE-2026-53600MEDIUM6.3
  • Rust logoRust
  • zed
NoYesSep 02, 2026
RUSTSEC-2026-0272NONEN/A
  • Rust logoRust
  • stack_dst
NoYesAug 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management