CVSS 3.1
6.3 mediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:HMedium (6.3). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:HExplain CVE-2022-21658 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21658?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21658?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21658 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| rust-lang:rust | from 1.0.0 through 1.58.0 |
| fedoraproject:fedora | 34 |
| fedoraproject:fedora | 35 |
| apple:ipados | before 15.4 |
| apple:iphone_os | before 15.4 |
| apple:macos | from 12.0.0 before 12.3 |
| apple:tvos | before 15.4 |
| apple:watchos | before 8.5 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | rustc | 1.57.0+dfsg1-1 | DEBIAN-CVE-2022-21658 |
| Ubuntu | 20.04:LTS | rustc | 1.59.0+dfsg1~ubuntu1~llvm-1~ubuntu1~20.04.2 | UBUNTU-CVE-2022-21658 |
| Ubuntu | Pro:14.04:LTS, Pro:16.04:LTS | rustc | no fix listed | UBUNTU-CVE-2022-21658 |
| Red Hat | enterprise_linux:8::appstream | rls, rust, cargo and 19 more | 0:1.58.1-1.module+el8.6.0+14021+586eff1a | RHSA-2022:1894 |
| SUSE | Enterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 13 more | rust | 1.53.0-22.1 | SUSE-SU-2022:0491-1 |
| SUSE | Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 more | rust | 1.53.0-3.40.1 | SUSE-SU-2022:0200-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust | 1.59.0-150300.21.20.1 | SUSE-SU-2022:0843-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust1.55 | 1.55.0-150300.7.6.1 | SUSE-SU-2022:0171-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust1.56 | 1.56.1-150300.7.6.1 | SUSE-SU-2022:0149-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust1.57 | 1.57.0-150300.7.7.1 | SUSE-SU-2022:0175-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust1.58 | 1.58.0-150300.7.3.1 | SUSE-SU-2022:0843-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3 | rust1.59 | 1.59.0-150300.7.4.2 | SUSE-SU-2022:0843-1 |
| SUSE | Package Hub 15 SP3 | libredwg | 0.12.5-bp153.2.3.1 | openSUSE-SU-2022:0149-1 |
| openSUSE | Leap 15.3 | libredwg | 0.12.5-bp153.2.3.1 | openSUSE-SU-2022:0149-1 |
| openSUSE | Leap 15.3 | rust | 1.53.0-22.1 | openSUSE-SU-2022:0491-1 |
| openSUSE | Leap 15.3 | rust | 1.59.0-150300.21.20.1 | openSUSE-SU-2022:0843-1 |
| openSUSE | Leap 15.3 | rust1.55 | 1.55.0-150300.7.6.1 | openSUSE-SU-2022:0171-1 |
| openSUSE | Leap 15.3 | rust1.56 | 1.56.1-150300.7.6.1 | openSUSE-SU-2022:0149-1 |
| openSUSE | Leap 15.3 | rust1.57 | 1.57.0-150300.7.7.1 | openSUSE-SU-2022:0175-1 |
| openSUSE | Leap 15.3 | rust1.58 | 1.58.0-150300.7.3.1 | openSUSE-SU-2022:0843-1 |
| openSUSE | Leap 15.3 | rust1.59 | 1.59.0-150300.7.4.2 | openSUSE-SU-2022:0843-1 |
| openSUSE | Tumbleweed | rust1.56 | 1.56.1-4.1 | openSUSE-SU-2024:11767-1 |
| openSUSE | Tumbleweed | rust1.57 | 1.57.0-3.1 | openSUSE-SU-2024:11768-1 |
| openSUSE | Tumbleweed | rust1.58 | 1.58.0-2.1 | openSUSE-SU-2024:11769-1 |
| AlmaLinux | 8 | rls, rust, cargo and 13 more | 1.58.1-1.module_el8.6.0+2748+176088b3 | ALSA-2022:1894 |
| Rocky Linux | 8 | rust, rust-toolset | 0:1.58.1-1.module+el8.6.0+826+60f85975 | RLSA-2022:1894 |
| Azure Linux | 2 | rust | 1.59.0-1 | AZL-8337 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
This flaw has been given a Severity of Moderate because it is not exploitable at will on every Rust program as it requires a specific scenario where a privileged program uses a specific Rust stdlib function, the attacker has some knowledge of the program's file operations, and has the normal limitations and challenges of a
Time-of-check to time-of-use (TOCTOU). It must also be carried out by an unprivileged attacker.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | rust-toolset:rhel8-8060020220125235043.eab6f2ea | Fixed 2022-05-10 | RHSA-2022:1894 |
| Red Hat Enterprise Linux 8 | stratisd | Will not fix | |
| Red Hat Enterprise Linux 9 | rust | Not affected | |
| Red Hat Enterprise Linux 9 | stratisd | Will not fix | |
| Red Hat OpenShift Container Platform 4 | kata-containers | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21658.
| Advisory | Title | Published | Sectors | Affected | Fixed |
|---|---|---|---|---|---|
| ICSA-25-100-02 | Siemens SIDIS Prime | 2025-04-08 | Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater Systems | SIDIS Prime | none listed |
From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.