{"id":"CVE-2021-29921","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2021-05-06T00:00:00.000Z","updatedAt":"2026-10-08T21:13:55.262Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/sickcodes","https://docs.python.org/3/library/ipaddress.html","https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst","https://sick.codes/sick-2021-014","https://www.oracle.com//security-alerts/cpujul2021.html","https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md","https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html","https://bugs.python.org/issue36384","https://github.com/python/cpython/pull/12577","https://github.com/python/cpython/pull/25099","https://security.netapp.com/advisory/ntap-20210622-0003/","https://www.oracle.com/security-alerts/cpuoct2021.html","https://www.oracle.com/security-alerts/cpujan2022.html","https://www.oracle.com/security-alerts/cpuapr2022.html","https://www.oracle.com/security-alerts/cpujul2022.html","https://security.gentoo.org/glsa/202305-02","https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:21.578Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/29xxx/CVE-2021-29921.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-29921","state":"PUBLISHED","datePublished":"2021-05-06T00:00:00.000Z","dateUpdated":"2026-10-08T21:13:55.262Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-04-01T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/sickcodes"},{"url":"https://docs.python.org/3/library/ipaddress.html"},{"url":"https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst"},{"url":"https://sick.codes/sick-2021-014"},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md"},{"url":"https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html"},{"url":"https://bugs.python.org/issue36384"},{"url":"https://github.com/python/cpython/pull/12577"},{"url":"https://github.com/python/cpython/pull/25099"},{"url":"https://security.netapp.com/advisory/ntap-20210622-0003/"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"url":"https://security.gentoo.org/glsa/202305-02","name":"GLSA-202305-02","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2023-05-03T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/sickcodes","tags":["x_transferred"]},{"url":"https://docs.python.org/3/library/ipaddress.html","tags":["x_transferred"]},{"url":"https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst","tags":["x_transferred"]},{"url":"https://sick.codes/sick-2021-014","tags":["x_transferred"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_transferred"]},{"url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md","tags":["x_transferred"]},{"url":"https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html","tags":["x_transferred"]},{"url":"https://bugs.python.org/issue36384","tags":["x_transferred"]},{"url":"https://github.com/python/cpython/pull/12577","tags":["x_transferred"]},{"url":"https://github.com/python/cpython/pull/25099","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210622-0003/","tags":["x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202305-02","name":"GLSA-202305-02","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:44:43.122Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-29921","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-08T21:08:18.432552Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-08T21:13:55.262Z"}}]}}}