CVE-2022-21658
Severity
6.3MEDIUM
EPSS
0.9%
top 24.42%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
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
Also affects: Fedora 34, 35
Patches
🔴Vulnerability Details
2📋Vendor Advisories
7Red Hat▶
rust: Race condition in remove_dir_all leading to removal of files outside of the directory being removed↗2022-01-20