CVE-2021-29922
Publication date 7 August 2021
Last updated 26 August 2025
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| rustc | 25.10 questing | Not in release |
| 24.04 LTS noble |
Not affected
|
|
| 22.04 LTS jammy |
Fixed 1.53.0+dfsg1+llvm-4ubuntu1
|
|
| 20.04 LTS focal |
Fixed 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1
|
|
| 18.04 LTS bionic |
Not affected
|
|
| 16.04 LTS xenial |
Vulnerable
|
|
| 14.04 LTS trusty |
Vulnerable
|
Severity score breakdown
| Parameter | Value |
|---|---|
| Base score |
|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity impact | High |
| Availability impact | High |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
References
Other references
- https://github.com/rust-lang/rust/issues/83648
- https://github.com/rust-lang/rust/pull/83652
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
- https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- https://www.cve.org/CVERecord?id=CVE-2021-29922