QID 379598

Date Published: 2024-04-10

QID 379598: Rust Standard Library Remote Code Execution (RCE) Vulnerability (BatBadBut)

Rust is a programming language.

The Rust standard library fails to properly escape arguments passed to batch files on Microsoft Windows when using the Command API. An attacker could exploit this vulnerability by passing malicious arguments, resulting in arbitrary shell execution.

Affected Versions:
Rust versions before 1.77.2 on Windows

QID Detection Logic:
This authenticated QID

Successful exploitation allows an attacker to execute arbitrary code on a targeted system.

  • CVSS V3 rated as Critical - 10 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to upgrade to Rust 1.77.2 or later versions to remediate this vulnerability.
    Vendor References

    CVEs related to QID 379598

    Software Advisories
    Advisory ID Software Component Link
    Rust 1.77.2 or later URL Logo www.rust-lang.org/tools/install

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report