SecurityContext

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

IdName
NVD-CWE-Other—

Public exploits

UrlSourceAdded date
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdnvd2021-05-06
https://sick.codes/sick-2021-014nvd2021-05-06

References

Same in every row:

  • Source: nvd
UrlTags
https://bugs.python.org/issue36384Issue Tracking, Patch, Vendor Advisory
https://github.com/python/cpython/pull/12577Patch, Third Party Advisory
https://github.com/python/cpython/pull/25099Patch, Third Party Advisory
https://www.oracle.com//security-alerts/cpujul2021.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
https://docs.python.org/3/library/ipaddress.htmlVendor Advisory
https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.htmlVendor Advisory
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdExploit, Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
python:python>= 3.9.0, < 3.9.5; >= 3.8.0, < 3.8.12/v1/products/python/python
oracle:graalvm= 21.1.0, = 20.3.2/v1/products/oracle/graalvm
oracle:zfs_storage_appliance_kit= 8.8/v1/products/oracle/zfs_storage_appliance_kit
oracle:communications_cloud_native_core_binding_support_function= 1.11.0/v1/products/oracle/communications_cloud_native_core_binding_support_function
oracle:communications_cloud_native_core_automated_test_suite= 1.8.0/v1/products/oracle/communications_cloud_native_core_automated_test_suite
oracle:communications_cloud_native_core_network_slice_selection_function= 1.8.0/v1/products/oracle/communications_cloud_native_core_network_slice_selection_function

Projects

RepositoryLink kindsIndexedUrl
python/cpythonfix, pullyes/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