Original 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 software
- Rust < 1.53.0 Fixed in: 1.53.0 exact match
Details
- Published
- 2021-08-07
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H- EPSS (30-day exploit probability)
- 2.45% (percentile 85)
References
- cve.org/CVE-2021-29922
- nvd.nist.gov/vuln/detail/CVE-2021-29922
- defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
- github.com/rust-lang/rust/issues/83648
- github.com/rust-lang/rust/pull/83652
- github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
- security.gentoo.org/glsa/202210-09
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.