# CVE-2021-29922: 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: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.45%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-08-07T00:00:00.000Z
- Modified: 2026-06-17T03:48:27.207Z
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rust-lang rust: before 1.53.0

## Every score

- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <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://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://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

- CVE List: [CVE-2021-29922](https://www.cve.org/CVERecord?id=CVE-2021-29922), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29922](https://nvd.nist.gov/vuln/detail/CVE-2021-29922), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29922 · Whole record: https://cve.day/CVE-2021-29922.json · Rebuilt by cve.day 2026-11-25T22:58:03.049Z
