| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.2 | $0-$5k | 0.00 |
Summary
A vulnerability identified as problematic has been detected in Rust up to 1.58.0. This issue affects the function std::fs::remove_dir_all. This manipulation causes toctou.
This vulnerability is registered as CVE-2022-21658. The attack needs to be launched locally. No exploit is available.
You should upgrade the affected component.
Details
A vulnerability classified as problematic was found in Rust up to 1.58.0. Affected by this vulnerability is the function std::fs::remove_dir_all. The manipulation with an unknown input leads to a toctou vulnerability. The CWE definition for the vulnerability is CWE-367. The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was published 01/21/2022 as GHSA-r9cc-f5pr-p3j2. The advisory is shared at github.com. This vulnerability is known as CVE-2022-21658 since 11/16/2021. Technical details are known, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 211025 (Fedora 36 : rust-afterburn / rust-askalono-cli / rust-below / rust-cargo-c / etc (2022-ea721afd66)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.58.1 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (211025) and EUVD (EUVD-2022-26876). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Name
Version
- 1.0
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- 1.19
- 1.20
- 1.21
- 1.22
- 1.23
- 1.24
- 1.25
- 1.26
- 1.27
- 1.28
- 1.29
- 1.30
- 1.31
- 1.32
- 1.33
- 1.34
- 1.35
- 1.36
- 1.37
- 1.38
- 1.39
- 1.40
- 1.41
- 1.42
- 1.43
- 1.44
- 1.45
- 1.46
- 1.47
- 1.48
- 1.49
- 1.50
- 1.51
- 1.52
- 1.53
- 1.54
- 1.55
- 1.56
- 1.57
- 1.58.0
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.3VulDB Meta Temp Score: 6.2
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 7.3
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: ToctouCWE: CWE-367 / CWE-362
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 211025
Nessus Name: Fedora 36 : rust-afterburn / rust-askalono-cli / rust-below / rust-cargo-c / etc (2022-ea721afd66)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Rust 1.58.1
Patch: github.com
Timeline
11/16/2021 🔍01/21/2022 🔍
01/21/2022 🔍
04/27/2026 🔍
Sources
Advisory: GHSA-r9cc-f5pr-p3j2Status: Confirmed
Confirmation: 🔍
CVE: CVE-2022-21658 (🔍)
GCVE (CVE): GCVE-0-2022-21658
GCVE (VulDB): GCVE-100-191305
EUVD: 🔍
Entry
Created: 01/21/2022 08:16Updated: 04/27/2026 08:44
Changes: 01/21/2022 08:16 (49), 01/26/2022 10:42 (2), 01/26/2022 10:47 (1), 11/17/2024 21:09 (16), 04/27/2026 08:44 (1)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.