patchminder

BatBadBut.Command injection.

BatBadBut is the nickname of CVE-2024-24576 in rust-lang rust. Rust is a programming language. The Rust Security Response WG was notified that the Rust standard library prior to version 1.77.2 did not properly escape arguments when invoking batch files (with the `bat` and `cmd` extensions) on Windows using the `Command`. An attacker able to control the arguments passed to the spawned process could execute arbitrary shell commands by bypassing the escaping. The severity of this vulnerability is critical for those who invoke batch files on Windows with untrusted arguments.

Name used by: RyotaK (Flatt Security)

Exploited
Not confirmed
Proof of concept public (GitHub)
Severity
Critical 10.0
CVSS 3.1 · no login needed
Attack likelihood
High
EPSS 20.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.77.2 or later
Timeline

From publication to today

25 Jan 2024
CVE ID reserved by GitHub_M.
9 Apr 2024
Published in the CVE List.
9 Apr 2024
First public proof of concept on GitHub.
4 Nov 2025
CVE record last updated.
What to do

Fix it

  • Upgrade rust to 1.77.2 or later.
Affected products

Affected and fixed versions

Product and line
Affected
Fixed in
rust
before 1.77.2
1.77.2
Everything else

The full page for CVE-2024-24576

Severity details, every source, exploit references with their warnings, and the version check.

Open CVE-2024-24576All named vulnerabilities