NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-43402
Summary

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.

Publication Date Sept. 5, 2024, 1:15 a.m.
Registration Date Sept. 5, 2024, 5 a.m.
Last Update Oct. 2, 2024, 12:12 a.m.
CVSS3.1 : HIGH
スコア 8.8
Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
攻撃元区分(AV) ローカル
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR)
利用者の関与(UI) 不要
影響の想定範囲(S) 変更あり
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:* 1.81.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
The Rust Programming Language の Rust における引数の挿入または変更に関する脆弱性
Title The Rust Programming Language の Rust における引数の挿入または変更に関する脆弱性
Summary

The Rust Programming Language の Rust には、引数の挿入または変更に関する脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Sept. 4, 2024, midnight
Registration Date Oct. 2, 2024, 9:48 a.m.
Last Update Oct. 2, 2024, 9:48 a.m.
Affected System
The Rust Programming Language
Rust 1.81.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2024年10月02日]
  掲載
Oct. 2, 2024, 9:48 a.m.