Vulnerability database / CVE-2021-29921
CVE-2021-29921
CRITICAL 9.8 CVSS 3.1 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.
Published 6 May 2021
Last modified 8 Oct 2026 Assigned by cve@mitre.org NVD status Modified Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
CRITICAL 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
HIGH 7.5
AV:N/AC:L/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.8.0, < 3.8.12
3.8.12 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.9.0, < 3.9.5
3.9.5 NVD
oracle
communications_cloud_native_core_automated_test_suitecpe:2.3:a:oracle:communications_cloud_native_core_automated_test_suite:1.8.0:*:*:*:*:*:*:*
= 1.8.0
NVD
oracle
communications_cloud_native_core_binding_support_functioncpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:1.11.0:*:*:*:*:*:*:*
= 1.11.0
NVD
oracle
communications_cloud_native_core_network_slice_selection_functioncpe:2.3:a:oracle:communications_cloud_native_core_network_slice_selection_function:1.8.0:*:*:*:*:*:*:*
= 1.8.0
NVD
oracle
graalvmcpe:2.3:a:oracle:graalvm:20.3.2:*:*:*:enterprise:*:*:*
= 20.3.2
NVD
oracle
graalvmcpe:2.3:a:oracle:graalvm:21.1.0:*:*:*:enterprise:*:*:*
= 21.1.0
NVD
oracle
zfs_storage_appliance_kitcpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*
= 8.8
References
https://bugs.python.org/issue36384 · Issue Tracking, Patch, Vendor Advisory https://docs.python.org/3/library/ipaddress.html · Vendor Advisory https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst · Third Party Advisory https://github.com/python/cpython/pull/12577 · Patch, Third Party Advisory https://github.com/python/cpython/pull/25099 · Patch, Third Party Advisory https://github.com/sickcodes · Third Party Advisory https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md · Exploit, Third Party Advisory https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html · Vendor Advisory https://security.gentoo.org/glsa/202305-02 https://security.netapp.com/advisory/ntap-20210622-0003/ · Third Party Advisory https://sick.codes/sick-2021-014 · Exploit, Third Party Advisory https://www.oracle.com//security-alerts/cpujul2021.html · Patch, Third Party Advisory https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory https://www.oracle.com/security-alerts/cpujan2022.html · Patch, Third Party Advisory https://www.oracle.com/security-alerts/cpujul2022.html https://www.oracle.com/security-alerts/cpuoct2021.html · Patch, Third Party Advisory https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
History
25 Nov 2026 20:33 UTC · NVD: first stored (published 6 May 2021)