CVE-2024-24576
rust: Fail to Escape Arguments Properly in Microsoft Windows
Severity
LowRed Hat Product Security
CVSS
Review impact separately from score.
Published · April 10, 2024
Updated · November 21, 2025
Description
A command injection flaw was found in Rust, exclusive to Windows environments. When invoking batch files on Windows using the Command API, Rust explicitly uses cmd.exe which has complicated parsing rules for arguments. If an attacker can control part of the command arguments of the batch file, this could bypass the argument escaping and inject arbitrary shell commands.
Statement
This vulnerability exclusively applies to applications running on Windows. Red Hat does not provide any Windows targets for Rust.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')