Upstream information

CVE-2024-43402 at MITRE

Description

Rust is a programming language. The fix for CVE-2024-24576, where `std::process::Command` incorrectly escaped arguments when invoking batch files on Windows, was incomplete. Prior to Rust version 1.81.0, it was possible to bypass the fix when the batch file name had trailing whitespace or periods (which are ignored and stripped by Windows). To determine whether to apply the `cmd.exe` escaping rules, the original fix for the vulnerability checked whether the command name ended with `.bat` or `.cmd`. At the time that seemed enough, as we refuse to invoke batch scripts with no file extension. Windows removes trailing whitespace and periods when parsing file paths. For example, `.bat. .` is interpreted by Windows as `.bat`, but the original fix didn't check for that. Affected users who are using Rust 1.77.2 or greater can remove the trailing whitespace (ASCII 0x20) and trailing periods (ASCII 0x2E) from the batch file name to bypass the incomplete fix and enable the mitigations. Users are affected if their code or one of their dependencies invoke a batch script on Windows with trailing whitespace or trailing periods in the name, and pass untrusted arguments to it. Rust 1.81.0 will update the standard library to apply the CVE-2024-24576 mitigations to all batch files invocations, regardless of the trailing chars in the file name.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

SUSE Bugzilla entry: 1230164 [RESOLVED / FIXED]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP5 rust Not affected
SUSE Linux Enterprise Desktop 15 SP5 rust1.79 Not affected
SUSE Linux Enterprise Desktop 15 SP5 rust1.80 Not affected
SUSE Linux Enterprise Desktop 15 SP6 rust Not affected
SUSE Linux Enterprise Desktop 15 SP6 rust1.79 Not affected
SUSE Linux Enterprise Desktop 15 SP6 rust1.80 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 rust1.79 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 rust1.80 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 rust1.79 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 rust1.80 Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP5 rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP5 rust1.79 Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP5 rust1.80 Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP6 rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP6 rust1.79 Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP6 rust1.80 Not affected
SUSE Linux Enterprise Server 15 SP5 rust Not affected
SUSE Linux Enterprise Server 15 SP5 rust1.79 Not affected
SUSE Linux Enterprise Server 15 SP5 rust1.80 Not affected
SUSE Linux Enterprise Server 15 SP6 rust Not affected
SUSE Linux Enterprise Server 15 SP6 rust1.79 Not affected
SUSE Linux Enterprise Server 15 SP6 rust1.80 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 rust1.79 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 rust1.80 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 rust1.79 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 rust1.80 Not affected
SUSE Manager Proxy 4.3 rust Not affected
SUSE Manager Retail Branch Server 4.3 rust Not affected
SUSE Manager Server 4.3 rust Not affected
openSUSE Leap 15.5 rust Not affected
openSUSE Leap 15.5 rust1.79 Not affected
openSUSE Leap 15.5 rust1.80 Not affected
openSUSE Leap 15.6 rust Not affected
openSUSE Leap 15.6 rust1.79 Not affected
openSUSE Leap 15.6 rust1.80 Not affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise Desktop 15 SP4 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP2 rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP3 rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP4 rust Not affected
SUSE Linux Enterprise Server 15 SP2 rust Not affected
SUSE Linux Enterprise Server 15 SP2-LTSS rust Not affected
SUSE Linux Enterprise Server 15 SP3 rust Not affected
SUSE Linux Enterprise Server 15 SP3-LTSS rust Not affected
SUSE Linux Enterprise Server 15 SP4 rust Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 rust Not affected
Products past their end of life and not receiving proactive updates anymore.
SUSE CaaS Platform 4.0 rust Not affected
SUSE Enterprise Storage 6 rust Not affected
SUSE Enterprise Storage 7 rust Not affected
SUSE Enterprise Storage 7.1 rust Not affected
SUSE Linux Enterprise Desktop 15 rust Not affected
SUSE Linux Enterprise Desktop 15 SP1 rust Not affected
SUSE Linux Enterprise Desktop 15 SP2 rust Not affected
SUSE Linux Enterprise Desktop 15 SP3 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1 rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS rust Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS rust Not affected
SUSE Linux Enterprise High Performance Computing 15-ESPOS rust Not affected
SUSE Linux Enterprise High Performance Computing 15-LTSS rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 rust Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP1 rust Not affected
SUSE Linux Enterprise Real Time 15 SP2 rust Not affected
SUSE Linux Enterprise Real Time 15 SP3 rust Not affected
SUSE Linux Enterprise Real Time 15 SP4 rust Not affected
SUSE Linux Enterprise Server 15 rust Not affected
SUSE Linux Enterprise Server 15 SP1 rust Not affected
SUSE Linux Enterprise Server 15 SP1-BCL rust Not affected
SUSE Linux Enterprise Server 15 SP1-LTSS rust Not affected
SUSE Linux Enterprise Server 15 SP2-BCL rust Not affected
SUSE Linux Enterprise Server 15 SP3-BCL rust Not affected
SUSE Linux Enterprise Server 15-LTSS rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 rust Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 rust Not affected
SUSE Manager Proxy 4.0 rust Not affected
SUSE Manager Proxy 4.1 rust Not affected
SUSE Manager Proxy 4.2 rust Not affected
SUSE Manager Retail Branch Server 4.0 rust Not affected
SUSE Manager Retail Branch Server 4.1 rust Not affected
SUSE Manager Retail Branch Server 4.2 rust Not affected
SUSE Manager Server 4.0 rust Not affected
SUSE Manager Server 4.1 rust Not affected
SUSE Manager Server 4.2 rust Not affected
openSUSE Leap 15.3 rust Not affected
openSUSE Leap 15.4 rust Not affected
Container Status
bci/rust:1.80 rust1.80Not affected


SUSE Timeline for this CVE

CVE page created: Wed Sep 4 20:00:03 2024
CVE page last modified: Thu Sep 26 12:01:12 2024