OS Command Injection in Rust Programming Language - CVE-2024-24576
Published: April 10, 2024 / Updated: May 16, 2024
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper validation of arguments passed to the std::process::Command when invoking batch files (with the bat and cmd extensions) on Windows using the Command API. A remote attacker can trick the victim to run a specially crafted file and execute arbitrary OS commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
fd
Anolis OS
Fedora
rustfmt
rust-toolset
rust-std-static-wasm32-wasi
rust-std-static-wasm32-unknown-unknown
rust-srpm-macros
rust-src
rust-lldb
rust-gdb
rust-debugger-common
rust-std-static-x86_64-unknown-uefi
rust-std-static-x86_64-unknown-none
rust-std-static
rust-doc
rust-analyzer
rust
clippy
cargo
How to mitigate CVE-2024-24576
fd - update to 10.0.0
rustfmt - update to 1.77.2-1
rust-toolset - update to 1.77.2-1
rust-std-static-wasm32-wasi - update to 1.77.2-1
rust-std-static-wasm32-unknown-unknown - update to 1.77.2-1
rust-srpm-macros - update to 1.77.2-1
rust-src - update to 1.77.2-1
rust-lldb - update to 1.77.2-1
rust-gdb - update to 1.77.2-1
rust-debugger-common - update to 1.77.2-1
rust-std-static-x86_64-unknown-uefi - update to 1.77.2-1
rust-std-static-x86_64-unknown-none - update to 1.77.2-1
rust-std-static - update to 1.77.2-1
rust-doc - update to 1.77.2-1
rust-analyzer - update to 1.77.2-1
rust - update to 1.77.2-1
clippy - update to 1.77.2-1
cargo - update to 1.77.2-1
rust - addressed in versions 1.77.2-1.fc38, 1.77.2-1.fc39, 1.77.2-1.fc40, 1.77.2-1.fc41