CVE-2021-29922
JSON

9.1critical

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…

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
2.45% (higher than 84% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rust-lang rustbefore 1.53.0NVD

All scores

NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:P

What each source says

CVE List

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.

NVD (es)

El archivo library/std/src/net/parser.rs en Rust versiones anteriores a 1.53.0, no considera apropiadamente los caracteres cero extraños al principio de una cadena de direcciones IP, lo que (en algunas situaciones) permite a atacantes omitir el control de acceso que es basado en las direcciones IP, debido a una interpretación octal inesperada

References

Sources

SourceRecordLicence
CVE ListCVE-2021-29922 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-29922 changed 2026-06-17Public domain