cve.bz

CVE-2021-29922 rust-lang rust

9.1 criticalExploit referenceEPSS 2.5%Fix available

Critical (9.1) in rust-lang rust. EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
2.5% (unchanged from 2.5% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29922 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29922?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29922?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29922 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rust-lang:rustbefore 1.53.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rustc1.53.0+dfsg1-1DEBIAN-CVE-2021-29922
Ubuntu20.04:LTSrustc1.53.0+dfsg1+llvm-4ubuntu1~20.04.1UBUNTU-CVE-2021-29922
Ubuntu22.04:LTSrustc1.53.0+dfsg1+llvm-4ubuntu1UBUNTU-CVE-2021-29922
UbuntuPro:14.04:LTS, Pro:16.04:LTSrustcno fix listedUBUNTU-CVE-2021-29922
Red Hatenterprise_linux:8::appstreamrls, rust, cargo and 17 more0:1.54.0-2.module+el8.5.0+12254+dc27bae9RHSA-2021:4270
Red Hatenterprise_linux:8::appstreamrust-toolset0:1.54.0-1.module+el8.5.0+12195+effd8a03RHSA-2021:4270
AlmaLinux8rust-toolset1.54.0-1.module_el8.5.0+2599+d655d86cALSA-2021:4270
Rocky Linux8rust0:1.54.0-2.module+el8.5.0+678+cf7bc64bRLSA-2021:4270
Rocky Linux8rust-toolset0:1.54.0-1.module+el8.5.0+678+cf7bc64bRLSA-2021:4270
Alpinev3.14, v3.15, v3.16 and 7 morerust1.52.1-r1ALPINE-CVE-2021-29922
Alpinev3.24rust, chromium-rust1.52.1-r1ALPINE-CVE-2021-29922

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rust-toolset:rhel8-8050020210817185544.f73640c0Fixed 2021-11-09RHSA-2021:4270
Red Hat Enterprise Linux 9rustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29922.

References

Check your stackJSON