CVE-2023-40030: Cargo downloads a Rust project’s dependencies and compiles the project
CVE-2023-40030 is a medium-severity flaw (CVSS 6.1) affecting rust. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Cargo downloads a Rust project’s dependencies and compiles the project. Starting in Rust 1.60.0 and prior to 1.72, Cargo did not escape Cargo feature names when including them in the report generated by `cargo build --timings`. A malicious package included as a dependency may inject nearly arbitrary HTML here, potentially leading to cross-site scripting if the report is subsequently uploaded somewhere. The vulnerability affects users relying on d
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.1 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.9% (top 41%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2023-08-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-40030?
rust: upgrade to 1.72.0. Exact commands for each OS are on this page.
Is CVE-2023-40030 being exploited?
CVE-2023-40030 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-40030 affect?
CVE-2023-40030 affects rust. Severity is medium (CVSS 6.1). Cargo downloads a Rust project’s dependencies and compiles the project. Starting in Rust 1.60.0 and prior to 1.72, Cargo did not escape Cargo feature names when including them in the report generated by `cargo build --timings`. A malicious
How urgent is CVE-2023-40030?
Priority 36/100. No elevated risk signals yet.
Related CVEs
- CVE-2024-43402 HIGH 8.1 UPGRADE Rust is a programming language
- CVE-2024-3566 CRITICAL 9.8 UPGRADE UPGRADE A command inject vulnerability allows an attacker to perform command injection on Windows applications that in
- CVE-2024-24576 CRITICAL 10.0 MITIGATE UPGRADE Rust is a programming language
- CVE-2022-21658 HIGH 7.3 UPGRADE MITIGATE Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially
- CVE-2021-31162 CRITICAL 9.8 UPGRADE MITIGATE In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freei