CVE-2021-29922
CRITICAL severity · CVSS 9.1
9.1CVSS CRITICAL
Summary
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.
Impact & exploitability
Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactNone
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)2%
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Official patch: https://github.com/rust-lang/rust/issues/83648 ↗
Additional information
- NVD record
- https://github.com/rust-lang/rust/issues/83648Patch
- https://github.com/rust-lang/rust/pull/83652Patch
- https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.htmlAdvisory
- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudisAdvisory
- https://security.gentoo.org/glsa/202210-09Advisory
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.mdAdvisory