← Back to CVEs
CVE-2021-29921
CRITICAL9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published5/6/2021
Last Modified11/3/2025
Sourcenvd
Honeypot Sightings0
Affected Products
oracle:communications_cloud_native_core_automated_test_suiteoracle:communications_cloud_native_core_binding_support_functionoracle:communications_cloud_native_core_network_slice_selection_functionoracle:graalvmoracle:zfs_storage_appliance_kitpython:python
References
https://bugs.python.org/issue36384(cve@mitre.org)
https://docs.python.org/3/library/ipaddress.html(cve@mitre.org)
https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst(cve@mitre.org)
https://github.com/python/cpython/pull/12577(cve@mitre.org)
https://github.com/python/cpython/pull/25099(cve@mitre.org)
https://github.com/sickcodes(cve@mitre.org)
https://security.gentoo.org/glsa/202305-02(cve@mitre.org)
https://security.netapp.com/advisory/ntap-20210622-0003/(cve@mitre.org)
https://sick.codes/sick-2021-014(cve@mitre.org)
https://www.oracle.com//security-alerts/cpujul2021.html(cve@mitre.org)
https://www.oracle.com/security-alerts/cpuapr2022.html(cve@mitre.org)
https://www.oracle.com/security-alerts/cpujan2022.html(cve@mitre.org)
https://www.oracle.com/security-alerts/cpujul2022.html(cve@mitre.org)
https://www.oracle.com/security-alerts/cpuoct2021.html(cve@mitre.org)
https://bugs.python.org/issue36384(af854a3a-2127-422b-91ae-364da2661108)
https://docs.python.org/3/library/ipaddress.html(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/python/cpython/pull/12577(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/python/cpython/pull/25099(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/sickcodes(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md(af854a3a-2127-422b-91ae-364da2661108)
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html(af854a3a-2127-422b-91ae-364da2661108)
https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html(af854a3a-2127-422b-91ae-364da2661108)
https://security.gentoo.org/glsa/202305-02(af854a3a-2127-422b-91ae-364da2661108)
https://security.netapp.com/advisory/ntap-20210622-0003/(af854a3a-2127-422b-91ae-364da2661108)
https://sick.codes/sick-2021-014(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com//security-alerts/cpujul2021.html(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com/security-alerts/cpuapr2022.html(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com/security-alerts/cpujan2022.html(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com/security-alerts/cpujul2022.html(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com/security-alerts/cpuoct2021.html(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.