CVE-2021-29940
CRITICAL 9.8CVSS 3.1Double free in through
An issue was discovered in the through crate through 2021-02-18 for Rust. There is a double free (in through and through_and) upon a panic of the map function.
- Published
- 1 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-415
- Also known as
- GHSA-5hpj-m323-cphmRUSTSEC-2021-0049
- Sources
- NVDJSONOSV GHSA-5hpj-m323-cphmJSONOSV RUSTSEC-2021-0049JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | through_project | throughcpe:2.3:a:through_project:through:*:*:*:*:*:rust:*:* |
<= 2021-02-18 | |
| OSV | crates.io | through | <= 0.1.0 | |
| OSV | crates.io | through | >= 0.0.0-0 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0049.html · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-29940 · ADVISORY
- https://github.com/gretchenfrage/through/issues/1 · WEB, REPORT
- https://github.com/gretchenfrage/through · PACKAGE
- https://crates.io/crates/through · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Feb 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)