CVE-2022-21658

Severity
6.3MEDIUM
EPSS
0.9%
top 24.42%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 20
Latest updateMar 14

Description

Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency. The Rust Security Response WG was notified that the `std::fs::remove_dir_all` standard library function is vulnerable a race condition enabling symlink following (CWE-363). An attacker could use this security issue to trick a privileged program into deleting files and directories the attacker couldn't otherwise access or delete. Rust 1.0.0 through Rust 1.58.0 is affect

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:HExploitability: 2.0 | Impact: 4.7

Affected Packages8 packages

CVEListV5rust-lang/rust< 1.58.1
Debianrustc< 1.57.0+dfsg1-1+2
NVDrust-lang/rust1.0.01.58.0
NVDapple/macos12.0.012.3
NVDapple/tvos< 15.4

Also affects: Fedora 34, 35

Patches

🔴Vulnerability Details

2
CVEList
Race condition in std::fs::remove_dir_all in rustlang2022-01-20
OSV
CVE-2022-21658: Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency2022-01-20

📋Vendor Advisories

7
Apple
CVE-2022-21658: tvOS 15.42022-03-14
Apple
CVE-2022-21658: iOS 15.4 and iPadOS 15.42022-03-14
Apple
CVE-2022-21658: macOS Monterey 12.32022-03-14
Apple
CVE-2022-21658: watchOS 8.52022-03-14
Red Hat
rust: Race condition in remove_dir_all leading to removal of files outside of the directory being removed2022-01-20
CVE-2022-21658 (MEDIUM CVSS 6.3) | Rust is a multi-paradigm | cvebase.io