Skip to main content
← All vulnerabilities
CVE-2021-29921BIT-LIBPYTHON-2021-29921BIT-PYTHON-2021-29921BIT-PYTHON-MIN-2021-29921PSF-2021-2

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.12, 3.9.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • libpythonBitnami

    From 3.8.0 · fixed in 3.8.12; From 3.9.0 · fixed in 3.9.5

  • pythonBitnami

    From 3.8.0 · fixed in 3.8.12; From 3.9.0 · fixed in 3.9.5

  • python-minBitnami

    From 3.8.0 · fixed in 3.8.12; From 3.9.0 · fixed in 3.9.5

References 16

github.com

docs.python.org

GitHub · python/cpython

sick.codes

oracle.com

GitHub · sickcodes/security

python-security.readthedocs.io

bugs.python.org

security.netapp.com

security.gentoo.org