Race condition in Rust Programming Language - CVE-2022-21658

 

Race condition in Rust Programming Language - CVE-2022-21658

Published: January 21, 2022 / Updated: January 23, 2022


Vulnerability identifier: #VU59898
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2022-21658
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Rust Team
Affected software:
Rust Programming Language

Detailed vulnerability description

The vulnerability allows a remote attacker to escalate privileges on the system.

The vulnerability exists due to a race condition in std::fs::remove_dir_all. A remote attacker can exploit the race, escalate privileges and delete arbitrary files on the system.


How to mitigate CVE-2022-21658

Install updates from vendor's website.

Sources