Back
CVE-2021-29921In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some…
- 9.8CriticalCVSS base score
- 6.8%Exploitation in 30 daysEPSS · top 5.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By mitre
- 35 days later
· 35 days later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 6.8% · top 5.9% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
References
References17
- https://github.com/sickcodes (opens in a new tab)x_transferred
- https://docs.python.org/3/library/ipaddress.html (opens in a new tab)x_transferred
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst (opens in a new tab)x_transferred
- https://sick.codes/sick-2021-014 (opens in a new tab)x_transferred
- https://www.oracle.com//security-alerts/cpujul2021.html (opens in a new tab)x_transferred
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md (opens in a new tab)x_transferred
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html (opens in a new tab)x_transferred
- https://bugs.python.org/issue36384 (opens in a new tab)x_transferred
- https://github.com/python/cpython/pull/12577 (opens in a new tab)x_transferred
- https://github.com/python/cpython/pull/25099 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20210622-0003/ (opens in a new tab)x_transferred
- https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)x_transferred
- https://www.oracle.com/security-alerts/cpujan2022.html (opens in a new tab)x_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_transferred
- https://www.oracle.com/security-alerts/cpujul2022.html (opens in a new tab)x_transferred
- GLSA-202305-02 (opens in a new tab)vendor-advisoryx_transferred
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-16395 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-29921)Record last updated .