# CVE-2021-25907: Double free in containers

- 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.57%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-12T12:00:00.000Z
- Modified: 2026-06-17T03:42:33.537Z
- Also known as: GHSA-cv7x-6rc6-pq5v, RUSTSEC-2021-0010
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

An issue was discovered in the containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- containers (crates.io): before 0.9.11; from 0.0.0-0 before 0.9.11
- containers_project containers: before 0.9.11

## 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`
- RustSec Advisory Database: 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-0010.html> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25907> (advisory)
- <https://github.com/strake/containers.rs/issues/2> (report, web)
- <https://github.com/strake/containers.rs> (package)
- <https://crates.io/crates/containers> (package)

## Sources

- CVE List: [CVE-2021-25907](https://www.cve.org/CVERecord?id=CVE-2021-25907), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-cv7x-6rc6-pq5v](https://github.com/advisories/GHSA-cv7x-6rc6-pq5v), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0010](https://rustsec.org/advisories/RUSTSEC-2021-0010.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-25907](https://nvd.nist.gov/vuln/detail/CVE-2021-25907), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25907 · Whole record: https://cve.day/CVE-2021-25907.json · Rebuilt by cve.day 2026-11-25T22:57:59.725Z
