IP Address Parsing Vulnerability in Rust Programming Language
CVE-2021-29922
9.1CRITICAL
Key facts: CVE-2021-29922 is a critical severity (CVSS 9.1) vulnerability in Rust-lang Rust. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 2.4%, the estimated probability of exploitation in the next 30 days.
What is CVE-2021-29922?
An issue in the Rust programming language prior to version 1.53.0 arises from improper handling of leading zero characters in IP address strings. This flaw can lead to unexpected octal interpretation of IP addresses, potentially allowing attackers to bypass security mechanisms that depend on IP-based access control. Proper validation is essential to ensure that input is interpreted as intended and does not expose systems to unauthorized access.
References
https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
https://github.com/rust-lang/rust/pull/83652
https://github.com/rust-lang/rust/issues/83648
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
