9.1critical
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…
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.45% (higher than 84% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rust-lang rust | before 1.53.0 | NVD |
All scores
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
What each source says
CVE List
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.
NVD (es)
El archivo library/std/src/net/parser.rs en Rust versiones anteriores a 1.53.0, no considera apropiadamente los caracteres cero extraños al principio de una cadena de direcciones IP, lo que (en algunas situaciones) permite a atacantes omitir el control de acceso que es basado en las direcciones IP, debido a una interpretación octal inesperada
References
| https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html | vendor-advisory | |
| https://github.com/rust-lang/rust/pull/83652 | patch, third-party-advisory | |
| https://github.com/rust-lang/rust/issues/83648 | exploit, issue-tracking, patch, third-party-advisory | |
| https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md | exploit, third-party-advisory | |
| https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis | third-party-advisory | |
| https://security.gentoo.org/glsa/202210-09 | third-party-advisory, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29922 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-29922 changed 2026-06-17 | Public domain |