CVE-2021-29922: Critical severity rust-lang Rust vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/chromium-rustto a version that resolves this vulnerability.Fixed in 1.52.1-r1 - Upgrade
Upgrade
alpine/rustto a version that resolves this vulnerability.Fixed in 1.52.1-r1
Event History
Frequently Asked Questions
What is CVE-2021-29922?
CVE-2021-29922 is a vulnerability in Rust that allows attackers to bypass access control based on IP addresses.
What is the severity of CVE-2021-29922?
CVE-2021-29922 has a severity rating of 9.1 (critical).
How does CVE-2021-29922 work?
CVE-2021-29922 occurs due to Rust not properly considering extraneous zero characters at the beginning of an IP address string, leading to unexpected octal interpretation and potential bypass of IP-based access control.
Which software is affected by CVE-2021-29922?
Rust versions before 1.53.0 are affected by CVE-2021-29922.
How can I fix CVE-2021-29922?
To fix CVE-2021-29922, update Rust to version 1.53.0 or later.