CVE-2021-29922

CRITICAL
Published Aug 7, 20214y ago · Modified Jun 17, 20262w ago
9.1 CVSS 3.1
Critical
Find Similar
Published Aug 7, 2021 4y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
9.1
Exploitability
3.9
Impact
5.2
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Affected Products 1

VendorProductVersionRange
rust-langrust* <1.53.0

References 6

  • defcon.org https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
    Third Party Advisory
  • doc.rust-lang.org https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
    Vendor Advisory
  • github.com https://github.com/rust-lang/rust/issues/83648
    ExploitIssue TrackingPatchThird Party Advisory
  • github.com https://github.com/rust-lang/rust/pull/83652
    PatchThird Party Advisory
  • github.com https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
    ExploitThird Party Advisory
  • security.gentoo.org https://security.gentoo.org/glsa/202210-09
    Third Party Advisory

Remediation

  • github.com https://github.com/rust-lang/rust/issues/83648
    ExploitIssue TrackingPatchThird Party Advisory
  • github.com https://github.com/rust-lang/rust/pull/83652
    PatchThird Party Advisory