# CVE-2021-29935: Use after free in Rocket

- Severity: High 7.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-09T12:00:00.000Z
- Modified: 2026-06-17T03:48:28.230Z
- Also known as: GHSA-vcw4-8ph6-7vw8, RUSTSEC-2021-0044
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rocket (crates.io): before 0.4.7; from 0.0.0-0 before 0.4.7
- rocket rocket: before 0.4.7

## Every score

- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- RustSec Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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-0044.html> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29935> (advisory)
- <https://github.com/SergioBenitez/Rocket/issues/1534> (report, web)
- <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)

## Sources

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

---

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