CVE-2021-29922
rust: incorrect parsing of extraneous zero characters at the beginning of an IP address string
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
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.
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
A flaw was found in rust. Extraneous zero characters at the beginning of an IP address string are not properly considered which can allow an attacker to bypass IP-based access controls. The highest threat from this vulnerability is to data confidentiality and integrity.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-04-01 CVE Reserved
- 2021-08-07 CVE Published
- 2024-04-22 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-20: Improper Input Validation
CAPEC
References (8)
URL | Tag | Source |
---|---|---|
https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis | Third Party Advisory |
URL | Date | SRC |
---|---|---|
https://github.com/rust-lang/rust/issues/83648 | 2024-08-03 | |
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/rust-lang/rust/pull/83652 | 2022-11-07 |
URL | Date | SRC |
---|---|---|
https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html | 2022-11-07 | |
https://security.gentoo.org/glsa/202210-09 | 2022-11-07 | |
https://access.redhat.com/security/cve/CVE-2021-29922 | 2021-11-09 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1991962 | 2021-11-09 |