CVE-2021-29921
CVSS v3
9.8
CRITICAL
EPSS Score
6.9 %
exploit probability, as of 2026-10-18
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for python.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- pythonBitnamifrom 3.8.0 · fixed in 3.8.12and 2 other packages
- python38-asn1cryptoAlmaLinux:8all versions · fixed in 1.2.0-3.module_el8.6.0+2778+cd494b30
- python38-atomicwritesAlmaLinux:8all versions · fixed in 1.3.0-8.module_el8.6.0+2778+cd494b30
- python38-attrsAlmaLinux:8all versions · fixed in 19.3.0-3.module_el8.6.0+2778+cd494b30
- python38-babelAlmaLinux:8all versions · fixed in 2.7.0-11.module_el8.6.0+2778+cd494b30
- python38-cffiAlmaLinux:8all versions · fixed in 1.13.2-3.module_el8.6.0+2778+cd494b30
- python38-chardetAlmaLinux:8all versions · fixed in 3.0.4-19.module_el8.6.0+2778+cd494b30
- python38-cryptographyAlmaLinux:8all versions · fixed in 2.8-3.module_el8.6.0+2778+cd494b30
57 more package ranges on OSV.dev
Vendor advisories
python-ipaddress: Improper input validation of octal strings
Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update
Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update
Red Hat Security Advisory: rh-python38 security, bug fix, and enhancement update
Description
In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.
Technical details
- Published
- 2021-05-06
Frequently asked questions
What is CVE-2021-29921?
Is CVE-2021-29921 actively exploited?
What is the CVSS score for CVE-2021-29921?
Running python? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.