7.3

CVE-2022-21658: apple ipados Race Condition Enabling Link Following

CVSS: 7.3v3.1HighModified
AliasesMGASA-2022-0044SUSE-SU-2022:0149-1SUSE-SU-2022:0171-1
Published 20-01-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-21658 is a high (CVSS 7.3) Race Condition Enabling Link Following vulnerability in apple ipados. EPSS estimates a 1.38% chance of exploitation in the next 30 days, higher than 71.5% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
39/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
1.38%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Timeline

  1. 20-01-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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 affected by this vulnerability with 1.58.1 containing a patch. Note that the following build targets don't have usable APIs to properly mitigate the attack, and are thus still vulnerable even with a patched toolchain: macOS before version 10.10 (Yosemite) and REDOX. We recommend everyone to update to Rust 1.58.1 as soon as possible, especially people developing programs expected to run in privileged contexts (including system daemons and setuid binaries), as those have the highest risk of being affected by this. Note that adding checks in your codebase before calling remove_dir_all will not mitigate the vulnerability, as they would also be vulnerable to race conditions like remove_dir_all itself. The existing mitigation is working as intended outside of race conditions.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.38%

Chance of exploitation in the next 30 days

Percentile

72%

Versus all other CVEs

30-day change

0.00 pp

From 1.38% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.38%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Rust

    Maturity: poc

  • referenceUnverified

    Exploit Reference (blog.rust-lang.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Suse27 products
  • libredwg&distro=SUSE Package Hub 15 SP3< 0.12.5-bp153.2.3.1
  • rust1.55&distro=SUSE Linux Enterprise Module for Development Tools 15 SP3< 1.55.0-150300.7.6.1
  • rust1.56&distro=SUSE Linux Enterprise Module for Development Tools 15 SP3< 1.56.1-150300.7.6.1
  • rust1.57&distro=SUSE Linux Enterprise Module for Development Tools 15 SP3< 1.57.0-150300.7.7.1
  • rust1.58&distro=SUSE Linux Enterprise Module for Development Tools 15 SP3< 1.58.0-150300.7.3.1
Redhat22 products
  • cargo< 0:1.58.1-1.module+el8.6.0+14021+586eff1a
  • cargo-debuginfo< 0:1.58.1-1.module+el8.6.0+14021+586eff1a
  • cargo-doc< 0:1.58.1-1.module+el8.6.0+14021+586eff1a
  • clippy< 0:1.58.1-1.module+el8.6.0+14021+586eff1a
  • clippy-debuginfo< 0:1.58.1-1.module+el8.6.0+14021+586eff1a
Opensuse10 products
  • libredwg&distro=openSUSE Leap 15.3< 0.12.5-bp153.2.3.1
  • rust1.55&distro=openSUSE Leap 15.3< 1.55.0-150300.7.6.1
  • rust1.56&distro=openSUSE Leap 15.3< 1.56.1-150300.7.6.1
  • rust1.56&distro=openSUSE Tumbleweed< 1.56.1-4.1
  • rust1.57&distro=openSUSE Leap 15.3< 1.57.0-150300.7.7.1
Apple5 products
Debian1 product
  • rustc< 1.57.0+dfsg1-1
Fedoraproject1 product
Mageia1 product
  • rust< 1.57.0-1.1.mga8
Rust-lang1 product
  • rust< 1.58.1 | ≥ 1.0.0, ≤ 1.58.0
Ubuntu1 product
  • rustcAll versions (No fix recorded) | < 1.59.0+dfsg1~ubuntu1~llvm-1~ubuntu1~20.04.2

9 vendors · 69 products

References

45 links
Show all 45 references