CVE-2024-43402:CVE-2024-43402 is a Rust OS Command Injection/Argument Injection vulnerability affecting versions of Rust prior to 1.81.0.

splash
Back

Description Preview

The vulnerability in Rust, tracked as CVE-2024-43402, stems from an incomplete fix for a previous vulnerability (CVE-2024-24576) related to how `std::process::Command` escaped arguments when invoking batch files on Windows. Prior to Rust version 1.81.0, it was possible to bypass the fix by including trailing whitespace or periods in the batch file name, which were ignored and stripped by Windows. Affected users could potentially enable mitigations by removing the trailing whitespace and periods from the batch file name.

Overview

This vulnerability in Rust allows for OS Command Injection/Argument Injection, with a CVSS v3.1 base score of 8.2 (High severity). The attack complexity is rated as High, the attack vector is Local, and the impact on availability, confidentiality, and integrity is also rated as High. Privileges are not required for exploitation, and the scope is changed.

Remediation

To address this vulnerability, affected users are advised to upgrade to Rust version 1.81.0 or later. This update will apply mitigations for CVE-2024-24576 to all batch file invocations, regardless of trailing characters in the file name. Users should ensure that their code or dependencies do not invoke batch scripts on Windows with trailing whitespace or periods in the name and pass untrusted arguments to them.

References

  1. GitHub Security Advisory for Rust: GitHub Advisory
  2. Rust Blog Post on CVE-2024-24576: Rust Blog
  3. Microsoft Troubleshooting Guide for Windows Shell Experience: Microsoft Guide

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Manufacturing
    Manufacturing
  2. Retail Trade
    Retail Trade
  3. Accommodation & Food Services
    Accommodation & Food Services
  4. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  5. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  6. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  7. Construction
    Construction
  8. Educational Services
    Educational Services
  9. Finance and Insurance
    Finance and Insurance
  10. Health Care & Social Assistance
    Health Care & Social Assistance
  11. Information
    Information
  12. Management of Companies & Enterprises
    Management of Companies & Enterprises
  13. Mining
    Mining
  14. Other Services (except Public Administration)
    Other Services (except Public Administration)
  15. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  16. Public Administration
    Public Administration
  17. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database