CVE-2021-29922

Source
https://cve.org/CVERecord?id=CVE-2021-29922
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29922.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29922
Downstream
Related
Published
2021-08-07T17:15:06.907Z
Modified
2026-04-10T04:33:05.974993Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/rust-lang/rust

Affected ranges

Type
GIT
Repo
https://github.com/rust-lang/rust
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.53.0"
        }
    ]
}

Affected versions

0.*
0.1
0.2
0.4
0.5
0.6
0.7
0.8
0.9
1.*
1.0.0-alpha
1.0.0-alpha.2
1.0.0-beta
release-0.*
release-0.1
release-0.2
release-0.4
release-0.5
release-0.6
release-0.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29922.json"