# CVE-2021-30455: Double-free in id-map

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Published: 2021-02-26T12:00:00.000Z
- Modified: 2026-06-17T03:50:16.623Z
- Also known as: GHSA-8gmx-cpcg-f8h5, GHSA-rccq-j2m7-8fwr, GHSA-vfqx-hv88-f9cv, RUSTSEC-2021-0052
- Related: CVE-2021-30456, CVE-2021-30457
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

An issue was discovered in the id-map crate through 2021-02-26 for Rust. A double free can occur in IdMap::clone_from upon a .clone panic.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- id-map (crates.io): up to 0.2.1; from 0.0.0-0
- id-map_project id-map: up to 2021-02-26

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0052.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30455> (advisory)
- <https://github.com/andrewhickman/id-map/issues/3> (report, web)
- <https://github.com/andrewhickman/id-map> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30457> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30456> (advisory)
- <https://crates.io/crates/id-map> (package)

## Sources

- CVE List: [CVE-2021-30455](https://www.cve.org/CVERecord?id=CVE-2021-30455), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-8gmx-cpcg-f8h5](https://github.com/advisories/GHSA-8gmx-cpcg-f8h5), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-rccq-j2m7-8fwr](https://github.com/advisories/GHSA-rccq-j2m7-8fwr), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-vfqx-hv88-f9cv](https://github.com/advisories/GHSA-vfqx-hv88-f9cv), CC-BY-4.0, modified 2024-03-15
- RustSec Advisory Database: [RUSTSEC-2021-0052](https://rustsec.org/advisories/RUSTSEC-2021-0052.html), CC0-1.0, modified 2024-03-15
- NVD: [CVE-2021-30455](https://nvd.nist.gov/vuln/detail/CVE-2021-30455), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-30455 · Whole record: https://cve.day/CVE-2021-30455.json · Rebuilt by cve.day 2026-11-25T22:58:00.667Z
