Paper/Archive/CVE-2021-29921

CVE-2021-29921

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

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
n/an/a–CNA

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: total

References

refgithub.com/sickcodesrefdocs.python.org/3/library/ipaddress.htmlrefgithub.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rstrefsick.codes/sick-2021-014reforacle.com//security-alerts/cpujul2021.htmlrefgithub.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdrefpython-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.htmlrefbugs.python.org/issue36384refgithub.com/python/cpython/pull/12577refgithub.com/python/cpython/pull/25099refsecurity.netapp.com/advisory/ntap-20210622-0003reforacle.com/security-alerts/cpuoct2021.htmlreforacle.com/security-alerts/cpujan2022.htmlreforacle.com/security-alerts/cpuapr2022.htmlreforacle.com/security-alerts/cpujul2022.htmladvisorysecurity.gentoo.org/glsa/202305-02reflists.debian.org/debian-lts-announce/2024/12/msg00000.html