CVE-2021-29935 json
Use after free in Rocket
published 2021-02-09 5 y ago modified 2026-06-17 4 mo ago also GHSA-vcw4-8ph6-7vw8 , RUSTSEC-2021-0044 , EUVD-2021-1890
- cvss
- 7.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io rocket 0.4.7
- rocket rocket 0.4.7
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0044.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | rocket | <0.4.7 >=0.0.0-0, <0.4.7 |
0.4.7 |
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/SergioBenitez/Rocket/commit/b53a906a8e170fe9b151381c66a76a872c419f9e
web
-
github.com
/SergioBenitez/Rocket/commit/e325e2fce4d9f9f392761e9fb58b418a48cef8bb
web
-
rustsec.org
/advisories/RUSTSEC-2021-0044.html
web, exploit, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-29935
advisory
-
github.com
/SergioBenitez/Rocket/issues/1534
web, report
-
github.com
/SergioBenitez/Rocket
package
-
crates.io
/crates/rocket
package
Sources
- CVE List CVE-2021-29935
- GitHub Advisory GHSA-vcw4-8ph6-7vw8
- NVD CVE-2021-29935
- OSV RUSTSEC-2021-0044
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.