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.
Loading...
Loading...
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-24. NVD baseline CVSS 9.8; sources differ by 0.0.
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.
May 6, 2021
November 3, 2025
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3.8-venv (3.8.0-3ubuntu1~18.04.2+esm2) @ bionic | 2026-05-26 | ubuntu |
| ubuntu | python3.8-doc (3.8.10-0ubuntu1~20.04.1) @ focal | 2026-05-26 | ubuntu |
| ubuntu | python3.8-doc (3.8.6-1ubuntu0.3) @ groovy | 2026-05-26 | ubuntu |
| redhat | python39-devel:3.9-8050020210811100211.d428a79b | 2021-11-09 | redhat |
| redhat | python38-devel:3.8-8050020210811101222.e3d35cca | 2021-11-09 | redhat |
| redhat | rh-python38-python-urllib3-0:1.25.7-7.el7 | 2021-08-24 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
RHSA-2021:3254 — Moderate
RHSA-2021:4160 — Moderate
RHSA-2021:4162 — Moderate
Python vulnerability
Python vulnerability
Python vulnerabilities
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-29921
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.
redhat
CWE-20