Vulnerability · Published Aug 7, 2021 · Assigned by mitre
CVE-2021-29922
Critical 9.1
In plain English
A critical-severity security flaw in the rust-toolset package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.1Critical
Exploit odds (30 days)2.6%top 14.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses, because of unexpected octal interpretation.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | rust-toolset | 1.54.0-1.module_el8.5.0+2599+d655d86c | ALSA-2021:4270 |
| Alpine:v3.24 | chromium-rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Alpine:v3.20 | rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Alpine:v3.21 | rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Alpine:v3.22 | rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Alpine:v3.23 | rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Alpine:v3.24 | rust | 1.52.1-r1 | ALPINE-CVE-2021-29922 |
| Debian:12 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-29922 |
| Debian:13 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-29922 |
| Debian:14 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-29922 |
| Rocky Linux:8 | rust | 0:1.54.0-2.module+el8.5.0+678+cf7bc64b | RLSA-2021:4270 |
| Rocky Linux:8 | rust-toolset | 0:1.54.0-1.module+el8.5.0+678+cf7bc64b | RLSA-2021:4270 |
| Ubuntu:22.04:LTS | rustc | 1.53.0+dfsg1+llvm-4ubuntu1 | UBUNTU-CVE-2021-29922 |
Affected products (as reported)
References
- https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
- https://github.com/rust-lang/rust/pull/83652
- https://github.com/rust-lang/rust/issues/83648
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- GLSA-202210-09 vendor-advisory