CVE-2021-29921
publishedpython-ipaddress: Improper input validation of octal strings
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PYTHON3.8-2023-009 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python38-Cython | Advisory build | 0.29.14-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| Alpine Linux | edge | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Debian | bullseye | python3.9 | Advisory build | 3.9.2-1+deb11u2 | DLA-3980-1 |
| Oracle Linux | 8 | python38aarch64 · python38 · 3.8b | Advisory build | 0:3.8.8-4.module+el8.5.0+20371+4f24d723 | ELSA-2021-4162 |
| AlmaLinux | 8 | python38-PyMySQL | Advisory build | 0.10.1-1.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | python38-asn1crypto | Advisory build | 1.2.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-atomicwrites | Advisory build | 1.3.0-8.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-attrs | Advisory build | 19.3.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-babel | Advisory build | 2.7.0-11.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-cffi | Advisory build | 1.13.2-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-chardet | Advisory build | 3.0.4-19.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-cryptography | Advisory build | 2.8-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-idna | Advisory build | 2.8-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-jinja2 | Advisory build | 2.10.3-5.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-markupsafe | Advisory build | 1.1.1-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-mod_wsgi | Advisory build | 4.6.8-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-more-itertools | Advisory build | 7.2.0-5.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-numpy | Advisory build | 1.17.3-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-numpy-doc | Advisory build | 1.17.3-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-numpy-f2py | Advisory build | 1.17.3-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-packaging | Advisory build | 19.2-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pluggy | Advisory build | 0.13.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-ply | Advisory build | 3.11-10.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-psutil | Advisory build | 5.6.4-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-psycopg2 | Advisory build | 2.8.4-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-psycopg2-doc | Advisory build | 2.8.4-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-psycopg2-tests | Advisory build | 2.8.4-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-py | Advisory build | 1.8.0-8.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pycparser | Advisory build | 2.19-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pyparsing | Advisory build | 2.4.5-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pysocks | Advisory build | 1.7.1-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pytest | Advisory build | 4.6.6-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pytz | Advisory build | 2019.3-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-pyyaml | Advisory build | 5.4.1-1.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-requests | Advisory build | 2.22.0-9.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-scipy | Advisory build | 1.3.1-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-setuptools | Advisory build | 41.6.0-5.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-setuptools-wheel | Advisory build | 41.6.0-5.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-six | Advisory build | 1.12.0-10.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-urllib3 | Advisory build | 1.25.7-5.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-wcwidth | Advisory build | 0.1.7-16.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-wheel | Advisory build | 0.33.6-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python38-wheel-wheel | Advisory build | 0.33.6-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:4162 |
| AlmaLinux | 8 | python39-Cython | Advisory build | 0.29.21-5.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-PyMySQL | Advisory build | 0.10.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-attrs | Advisory build | 20.3.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-cffi | Advisory build | 1.14.3-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-chardet | Advisory build | 3.0.4-19.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-cryptography | Advisory build | 3.3.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-idna | Advisory build | 2.10-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-iniconfig | Advisory build | 1.1.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-mod_wsgi | Advisory build | 4.7.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-more-itertools | Advisory build | 8.5.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-numpy | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-numpy-doc | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-numpy-f2py | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-packaging | Advisory build | 20.4-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pluggy | Advisory build | 0.13.1-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-ply | Advisory build | 3.11-10.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-psutil | Advisory build | 5.8.0-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-psycopg2 | Advisory build | 2.8.6-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-psycopg2-doc | Advisory build | 2.8.6-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-psycopg2-tests | Advisory build | 2.8.6-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-py | Advisory build | 1.10.0-1.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pycparser | Advisory build | 2.20-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pyparsing | Advisory build | 2.4.7-5.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pysocks | Advisory build | 1.7.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pytest | Advisory build | 6.0.2-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-pyyaml | Advisory build | 5.4.1-1.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-requests | Advisory build | 2.25.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-scipy | Advisory build | 1.5.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-setuptools | Advisory build | 50.3.2-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-setuptools-wheel | Advisory build | 50.3.2-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-six | Advisory build | 1.15.0-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-toml | Advisory build | 0.10.1-5.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-urllib3 | Advisory build | 1.25.10-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-wcwidth | Advisory build | 0.2.5-3.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-wheel | Advisory build | 1:0.35.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| AlmaLinux | 8 | python39-wheel-wheel | Advisory build | 1:0.35.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2021:4160 |
| Alpine Linux | v3.15 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.16 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.17 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.18 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.19 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.20 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.21 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.22 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.23 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Alpine Linux | v3.24 | python3 | Fixed | 3.9.5-r0 | Package fix record |
| Oracle Linux | 8 | python38x86_64 · python38 · 3.8b | Advisory build | 0:3.8.8-4.module+el8.5.0+20371+4f24d723 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-Cythonaarch64 · python38 · 3.8b | Advisory build | 0:0.29.14-4.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-Cythonx86_64 · python38 · 3.8b | Advisory build | 0:0.29.14-4.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-PyMySQLaarch64 · python38 · 3.8b | Advisory build | 0:0.10.1-1.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-PyMySQLx86_64 · python38 · 3.8b | Advisory build | 0:0.10.1-1.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-asn1cryptoaarch64 · python38 · 3.8b | Advisory build | 0:1.2.0-3.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-asn1cryptox86_64 · python38 · 3.8b | Advisory build | 0:1.2.0-3.module+el8.4.0+20068+32a535e2 | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-atomicwritesaarch64 · python38-devel · 3.8b | Advisory build | 0:1.3.0-8.module+el8.2.0+5579+085cd3bd | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-atomicwritesx86_64 · python38-devel · 3.8b | Advisory build | 0:1.3.0-8.module+el8.2.0+5579+085cd3bd | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-attrsaarch64 · python38-devel · 3.8b | Advisory build | 0:19.3.0-3.module+el8.2.0+5579+085cd3bd | ELSA-2021-4162 |
| Oracle Linux | 8 | python38-attrsx86_64 · python38-devel · 3.8b | Advisory build | 0:19.3.0-3.module+el8.2.0+5579+085cd3bd | ELSA-2021-4162 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
17- https://bugs.python.org/issue36384
- https://docs.python.org/3/library/ipaddress.html
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst
- https://github.com/python/cpython/pull/12577
- https://github.com/python/cpython/pull/25099
- https://github.com/sickcodes
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html
- GLSA-202305-02 https://security.gentoo.org/glsa/202305-02
- https://security.netapp.com/advisory/ntap-20210622-0003/
- https://sick.codes/sick-2021-014
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 459d767abe7c30b0a4046b4ffe79f6c15c204a7791e53d77a202f108415222f6
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record