Skip to content

libstd-rust CVE-2022-21658

Moderate
cbgbt published GHSA-gvh9-whw5-fc42 Jan 26, 2022

Package

cargo libstd-rust (Rust)

Affected versions

< 1.5.3

Patched versions

1.5.3

Description

A race condition flaw was found in Rust's std::fs::remove_dir_all function. Rust applications that use this function may be vulnerable to a race condition where an unprivileged attacker can trick the application into deleting files and directories, causing an impact on system data integrity. If the application is privileged, an attacker can possibly delete files they would not usually have access to.

Bottlerocket uses this function when deleting temporary directories created by several OS subsystems.

Severity

Moderate

CVE ID

CVE-2022-21658

Weaknesses

No CWEs