CVE-2021-29922

Name
CVE-2021-29922
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.
NVD Severity
high
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/rust-lang/rust/pull/83652
MISC https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
MISC https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
MISC https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
MISC https://github.com/rust-lang/rust/issues/83648

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:* rust >= None < 1.53.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
rust 3.14-community 1.52.1-r1 Rasmus Thomsen <oss@cogitri.dev> fixed