CVE-2022-21658: Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially
49
This month
HIGH 7.3UPGRADEMITIGATEUPGRADE
CVE-2022-21658 is a high-severity flaw (CVSS 7.3) affecting rust, fedora, ipados. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 o
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
fedoraproject fedora MITIGATE
Affected: 34 · 35
Fixed in: no fixed release known
Safe to downgrade to: a release before 34
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
apple ipados UPGRADE
Affected: < 15.4
Fixed in: 15.4
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
apple iphone os UPGRADE
Affected: < 15.4
Fixed in: 15.4
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
apple macos UPGRADE
Affected: >= 12.0.0 and < 12.3
Fixed in: 12.3
Safe to downgrade to: a release before 12.0.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
apple tvos UPGRADE
Affected: < 15.4
Fixed in: 15.4
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-21658?
rust: upgrade to newer than 1.58.0; fedora: mitigate or apply the listed mitigation; ipados: upgrade to 15.4. Exact commands for each OS are on this page.
Is CVE-2022-21658 being exploited?
CVE-2022-21658 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-21658 affect?
CVE-2022-21658 affects rust, fedora, ipados. Severity is high (CVSS 7.3). 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 vuln
How urgent is CVE-2022-21658?
Priority 49/100. High severity; Public exploit reference
CVE-2024-43402HIGH 8.1UPGRADE Rust is a programming language
CVE-2024-3566CRITICAL 9.8UPGRADEUPGRADE A command inject vulnerability allows an attacker to perform command injection on Windows applications that in
CVE-2024-24576CRITICAL 10.0MITIGATEUPGRADE Rust is a programming language
CVE-2023-40030MEDIUM 6.1UPGRADE Cargo downloads a Rust project’s dependencies and compiles the project
CVE-2021-31162CRITICAL 9.8UPGRADEMITIGATE In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freei