Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2021-29921: In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string.

CriticalCVSS 9.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Plan (action score 41/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 6.7% (FIRST EPSS); higher than 94% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: python38-asn1crypto (AlmaLinux:8) 1.2.0-3.module_el8.6.0+2778+cd494b30; python38-atomicwrites (AlmaLinux:8) 1.3.0-8.module_el8.6.0+2778+cd494b30; python38-attrs (AlmaLinux:8) 19.3.0-3.module_el8.6.0+2778+cd494b30.

Add it to your regular patch cycle. Upgrade to python38-asn1crypto (AlmaLinux:8) 1.2.0-3.module_el8.6.0+2778+cd494b30; python38-atomicwrites (AlmaLinux:8) 1.3.0-8.module_el8.6.0+2778+cd494b30; python38-attrs (AlmaLinux:8) 19.3.0-3.module_el8.6.0+2778+cd494b30 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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
May 6, 2021
Updated
Oct 8, 2026
EPSS
6.7% · 94th percentile
CWE
—

Report tools

JSON

Action score

41

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 6.7%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-29921

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
pythonpython
oraclecommunications cloud native core automated test suite
oraclecommunications cloud native core binding support function
oraclecommunications cloud native core network slice selection function
oraclegraalvm
oraclezfs storage appliance kit

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • oracle communications cloud native core automated test suite1.8.0
  • oracle communications cloud native core binding support function1.11.0
  • oracle communications cloud native core network slice selection function1.8.0
  • oracle graalvm20.3.2
  • oracle graalvm21.1.0
  • oracle zfs storage appliance kit8.8
  • python python3.9.0 and later · before 3.9.5
  • python python3.8.0 and later · before 3.8.12

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8python38-asn1cryptobefore 1.2.0-3.module_el8.6.0+2778+cd494b301.2.0-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-atomicwritesbefore 1.3.0-8.module_el8.6.0+2778+cd494b301.3.0-8.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-attrsbefore 19.3.0-3.module_el8.6.0+2778+cd494b3019.3.0-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-babelbefore 2.7.0-11.module_el8.6.0+2778+cd494b302.7.0-11.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-cffibefore 1.13.2-3.module_el8.6.0+2778+cd494b301.13.2-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-chardetbefore 3.0.4-19.module_el8.6.0+2778+cd494b303.0.4-19.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-cryptographybefore 2.8-3.module_el8.6.0+2778+cd494b302.8-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-Cythonbefore 0.29.14-4.module_el8.6.0+2778+cd494b300.29.14-4.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-idnabefore 2.8-6.module_el8.6.0+2778+cd494b302.8-6.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-jinja2before 2.10.3-5.module_el8.6.0+2778+cd494b302.10.3-5.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-markupsafebefore 1.1.1-6.module_el8.6.0+2778+cd494b301.1.1-6.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-mod_wsgibefore 4.6.8-3.module_el8.6.0+2778+cd494b304.6.8-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-more-itertoolsbefore 7.2.0-5.module_el8.6.0+2778+cd494b307.2.0-5.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-numpybefore 1.17.3-6.module_el8.6.0+2778+cd494b301.17.3-6.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-numpy-docbefore 1.17.3-6.module_el8.6.0+2778+cd494b301.17.3-6.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-numpy-f2pybefore 1.17.3-6.module_el8.6.0+2778+cd494b301.17.3-6.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-packagingbefore 19.2-3.module_el8.6.0+2778+cd494b3019.2-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-pluggybefore 0.13.0-3.module_el8.6.0+2778+cd494b300.13.0-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-plybefore 3.11-10.module_el8.6.0+2778+cd494b303.11-10.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-psutilbefore 5.6.4-4.module_el8.6.0+2778+cd494b305.6.4-4.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-psycopg2before 2.8.4-4.module_el8.6.0+2778+cd494b302.8.4-4.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-psycopg2-docbefore 2.8.4-4.module_el8.6.0+2778+cd494b302.8.4-4.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-psycopg2-testsbefore 2.8.4-4.module_el8.6.0+2778+cd494b302.8.4-4.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-pybefore 1.8.0-8.module_el8.6.0+2778+cd494b301.8.0-8.module_el8.6.0+2778+cd494b30

+96

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…
    47Plan
  • CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…
    46Plan

Published before and after this one in the same product

  • ← EarlierCVE-2021-23336Feb 15, 2021 · The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9.0 and before 3.9.2…
    35Monitor
  • ← EarlierCVE-2021-32052May 6, 2021 · In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs…
    25Monitor
  • Later →CVE-2021-3426May 20, 2021 · There's a flaw in Python 3's pydoc.
    23Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-cryptography3.3.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-idna2.10-3.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-iniconfig1.1.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-mod_wsgi4.7.1-4.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-more-itertools8.5.0-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-numpy1.19.4-3.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-numpy-doc1.19.4-3.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
alpine:python33.9.5-r0 · Alpine:v3.15Package registry (OSV)
debian:pypy37.3.8+dfsg-1 · Debian:12Package registry (OSV)
debian:python3.93.9.2-1+deb11u2 · Debian:11Package registry (OSV)
opensuse:python393.9.7-2.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:rh-python38-babel0:2.7.0-12.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-babel0:2.7.0-12.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-cryptography0:2.8-5.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-cryptography-debuginfo0:2.8-5.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-debug0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-debuginfo0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-devel0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-idle0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-jinja20:2.10.3-6.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-libs0:3.8.11-2.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-python38-python-lxml0:4.4.1-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
rocky linux:Cython0:0.29.21-5.module+el8.4.0+574+843c4898 · Rocky Linux:8Package registry (OSV)
rocky linux:mod_wsgi0:4.7.1-4.module+el8.4.0+574+843c4898 · Rocky Linux:8Package registry (OSV)

+12

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

—

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records