Rust is a programming language. The fix for CVE-2024-24576, where `std::process::Command` incorrectly escaped arguments when invoking batch files on Windows, was incomplete. Prior to Rust version 1.81.0, it was possible to bypass the fix when the batch file name had trailing whitespace or periods (which are ignored and stripped by Windows). To determine whether to apply the `cmd.exe` escaping rules, the original fix for the vulnerability checked whether the command name ended with `.bat` or `.cmd`. At the time that seemed enough, as we refuse to invoke batch scripts with no file extension. Windows removes trailing whitespace and periods when parsing file paths. For example, `.bat. .` is interpreted by Windows as `.bat`, but the original fix didn't check for that. Affected users who are using Rust 1.77.2 or greater can remove the trailing whitespace (ASCII 0x20) and trailing periods (ASCII 0x2E) from the batch file name to bypass the incomplete fix and enable the mitigations. Users are affected if their code or one of their dependencies invoke a batch script on Windows with trailing whitespace or trailing periods in the name, and pass untrusted arguments to it. Rust 1.81.0 will update the standard library to apply the CVE-2024-24576 mitigations to all batch files invocations, regardless of the trailing chars in the file name.
Conclusion & alert: CVE-2024-43402 is rated Moderate Risk (55.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.51%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-04 | 0.14% | 0.51% | +0.37% |
| 2 | 2026-03-01 | 0.51% | 0.14% | -0.37% |
| 3 | 2026-02-04 | — | 0.51% | — |
Full EPSS history (41 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.1 | 3.1 | HIGH |
|
1.4 | 6.0 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.0 | 6.0 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2024-43402: 1 source package rows (rust); 46 state rows across 6 repos (3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-community, edge-main); fixed 0, open 46. | https://security.alpinelinux.org/vuln/CVE-2024-43402 |
debian
|
unimportant | CVE-2024-43402 unimportant priority: Debian including 1 source packages (rustc), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2024-43402 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2024-43402 |
ubuntu
|
medium | CVE-2024-43402 medium priority: Ubuntu including 2 source packages (cargo, rustc), 13 status rows across 7 suites (bionic, focal, jammy, noble, trusty, upstream, xenial): not-affected 11, DNE 1, needs-triage 1. | https://ubuntu.com/security/CVE-2024-43402 |
| URL | Tags |
|---|---|
| https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html | Vendor Advisory |
| https://github.com/rust-lang/rust/security/advisories/GHSA-2xg3-7mm6-98jj | Mitigation Third Party Advisory |
| https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/file-folder-name-whitespace-characters | Patch Vendor Advisory |