CVE-2021-29935
HIGH 7.3CVSS 3.1Use after free in Rocket
An issue was discovered in the rocket crate before 0.4.7 for Rust. uri::Formatter can have a use-after-free if a user-provided function panics.
- Published
- 1 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-vcw4-8ph6-7vw8RUSTSEC-2021-0044
- Sources
- NVDJSONOSV GHSA-vcw4-8ph6-7vw8JSONOSV RUSTSEC-2021-0044JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | RustSec | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| 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 | rocket | rocketcpe:2.3:a:rocket:rocket:*:*:*:*:*:rust:*:* |
< 0.4.7 | 0.4.7 |
| OSV | crates.io | rocket | < 0.4.7 | 0.4.7 |
| OSV | crates.io | rocket | >= 0.0.0-0, < 0.4.7 | 0.4.7 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0044.html · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-29935 · ADVISORY
- https://github.com/SergioBenitez/Rocket/issues/1534 · WEB, REPORT
- https://github.com/SergioBenitez/Rocket/commit/b53a906a8e170fe9b151381c66a76a872c419f9e · WEB
- https://github.com/SergioBenitez/Rocket/commit/e325e2fce4d9f9f392761e9fb58b418a48cef8bb · WEB
- https://github.com/SergioBenitez/Rocket · PACKAGE
- https://crates.io/crates/rocket · 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 9 Feb 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)