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.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAffected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- https://bugs.python.org/issue36384Issue Tracking, Patch, Vendor Advisory
- https://docs.python.org/3/library/ipaddress.htmlVendor Advisory
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rstThird Party Advisory
- https://github.com/python/cpython/pull/12577Patch, Third Party Advisory
- https://github.com/python/cpython/pull/25099Patch, Third Party Advisory
- https://github.com/sickcodesThird Party Advisory
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdExploit, Third Party Advisory
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.htmlVendor Advisory
- https://security.gentoo.org/glsa/202305-02
- https://security.netapp.com/advisory/ntap-20210622-0003/Third Party Advisory
- https://sick.codes/sick-2021-014Exploit, Third Party Advisory
- https://www.oracle.com//security-alerts/cpujul2021.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
- https://bugs.python.org/issue36384Issue Tracking, Patch, Vendor Advisory
- https://docs.python.org/3/library/ipaddress.htmlVendor Advisory
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rstThird Party Advisory
- https://github.com/python/cpython/pull/12577Patch, Third Party Advisory
- https://github.com/python/cpython/pull/25099Patch, Third Party Advisory
- https://github.com/sickcodesThird Party Advisory
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdExploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.htmlVendor Advisory
- https://security.gentoo.org/glsa/202305-02
- https://security.netapp.com/advisory/ntap-20210622-0003/Third Party Advisory
- https://sick.codes/sick-2021-014Exploit, Third Party Advisory
- https://www.oracle.com//security-alerts/cpujul2021.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
Timeline
- Published
- May 6, 2021
- Last modified
- Oct 8, 2026
- NVD status
- Modified