{"id":"JLSEC-2026-1608","details":"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.","modified":"2026-12-01T15:15:03.917687975Z","published":"2026-12-01T15:11:45.475Z","upstream":["CVE-2021-29921"],"database_specific":{"license":"CC-BY-4.0","sources":[{"html_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29921","database_specific":{"status":"Modified"},"affected":{"python:python":["\u003e= 3.8.0, \u003c 3.8.12","\u003e= 3.9.0, \u003c 3.9.5"]},"id":"CVE-2021-29921","imported":"2026-11-21T03:10:13.559Z","modified":"2026-10-08T22:17:09.223Z","published":"2021-05-06T13:15:12.573Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-29921"}]},"references":[{"type":"WEB","url":"https://bugs.python.org/issue36384"},{"type":"WEB","url":"https://bugs.python.org/issue36384"},{"type":"WEB","url":"https://docs.python.org/3/library/ipaddress.html"},{"type":"WEB","url":"https://docs.python.org/3/library/ipaddress.html"},{"type":"WEB","url":"https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst"},{"type":"WEB","url":"https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst"},{"type":"WEB","url":"https://github.com/python/cpython/pull/12577"},{"type":"WEB","url":"https://github.com/python/cpython/pull/12577"},{"type":"WEB","url":"https://github.com/python/cpython/pull/25099"},{"type":"WEB","url":"https://github.com/python/cpython/pull/25099"},{"type":"WEB","url":"https://github.com/sickcodes"},{"type":"WEB","url":"https://github.com/sickcodes"},{"type":"WEB","url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md"},{"type":"WEB","url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"},{"type":"WEB","url":"https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html"},{"type":"WEB","url":"https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202305-02"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202305-02"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210622-0003/"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210622-0003/"},{"type":"WEB","url":"https://sick.codes/sick-2021-014"},{"type":"WEB","url":"https://sick.codes/sick-2021-014"},{"type":"WEB","url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"type":"WEB","url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"}],"affected":[{"package":{"name":"Python_jll","ecosystem":"Julia","purl":"pkg:julia/Python_jll?uuid=93d3a430-8e7c-50da-8e8d-3dfcfb3baf05"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.7+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1608.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V2","score":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"}]}