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 string, which (in some situations) allows attackers to
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 2.62% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 85.1% of scored records. A rank, not a probability.
- NVD base score
- 9.1 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2021-08-07 00:00Z5 YR AGO
- Last updated
- 2024-08-03 22:18Z2 YR AGO
- Reserved
- 2021-04-01
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-20Improper Input ValidationClass
- Data version
- 5.1
- Document digest
- 0a63e00f6451e5fcb0d02c8f42002b2704c5bb5607da32985c158928b3cddb86
05 Affected products
06 References
- doc.rust-lang.orghttps://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
- github.comhttps://github.com/rust-lang/rust/pull/83652
- github.comhttps://github.com/rust-lang/rust/issues/83648
- github.comhttps://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
- defcon.orghttps://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- security.gentoo.orgGLSA-202210-09https://security.gentoo.org/glsa/202210-09
07 Fixed in
AlmaLinux 8
- rust-toolset Fixed in 1.54.0-1.module_el8.5.0+2599+d655d86c
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- rust Fixed in 1.53.0-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- rust-toolset Fixed in 1.54.0-1.module_el8.5.0+2599+d655d86c
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- rustc Fixed in 1.53.0+dfsg1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- rustc Fixed in 1.53.0+dfsg1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- rustc Fixed in 1.53.0+dfsg1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- rustc Fixed in 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- rustc Fixed in 1.53.0+dfsg1+llvm-4ubuntu1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- rustc No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- rustc No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.