CVE-2021-29922Rust-lang Rust
Critical 9.1 No auth needed
Follow: this CVE · Rust-lang · Rust-lang Rust We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Aug 7, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rust.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rust-lang | rust | < 1.53.0 |
Official sources
References
Links published by the sources. Open them with care.
- defcon.org Third Party Advisory
- doc.rust-lang.org Vendor Advisory
- github.com Exploit Issue Tracking Patch
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- security.gentoo.org Third Party Advisory