CVE-2021-29921: Python - Broken Access Control
- Cve: CVE-2021-29921
- Name: Python - Broken Access Control
- 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.
- Impact: Attackers can bypass IP-based access controls, potentially gaining unauthorized access to systems or data.
- Remediation: Update to Python 3.9.5 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06817
- Epss percentile: 0.94098
- Assignee: [email protected]
- Published at: 2021-05-06T13:15:12Z
- Age in days: 2028
- Modified at: 2026-10-08T22:17:09Z
- Patch available: yes
- Public exploits total: 2
- References total: 17
- Products total: 6
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29921
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md | nvd | 2021-05-06 |
| https://sick.codes/sick-2021-014 | nvd | 2021-05-06 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugs.python.org/issue36384 | Issue Tracking, Patch, Vendor Advisory |
| https://github.com/python/cpython/pull/12577 | Patch, Third Party Advisory |
| https://github.com/python/cpython/pull/25099 | Patch, 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/cpuoct2021.html | Patch, Third Party Advisory |
| https://docs.python.org/3/library/ipaddress.html | Vendor Advisory |
| https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html | Vendor Advisory |
| https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md | Exploit, Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| python/cpython | fix, pull | yes | /v1/repositories/python/cpython |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2021-05-06
- Remote: yes
- Exposed hosts: 5115604
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports