CVE-2021-29921
CVE-2021-29921
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.8 · Critical · EPSS 6.9% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
pypy3 Debian:12
- Affected ranges
- ECOSYSTEM: < 7.3.8+dfsg-1
Update to 7.3.8+dfsg-1
pypy3 Debian:13
- Affected ranges
- ECOSYSTEM: < 7.3.8+dfsg-1
Update to 7.3.8+dfsg-1
pypy3 Debian:14
- Affected ranges
- ECOSYSTEM: < 7.3.8+dfsg-1
Update to 7.3.8+dfsg-1
python3.8 Ubuntu:Pro:18.04:LTS
- Versions
- 3.8.0-3~18.04
- 3.8.0-3~18.04.1
- 3.8.0-3ubuntu1~18.04.2
- 3.8.0-3ubuntu1~18.04.2+esm1
- Affected ranges
- ECOSYSTEM: < 3.8.0-3ubuntu1~18.04.2+esm2
Update to 3.8.0-3ubuntu1~18.04.2+esm2
python3.8 Ubuntu:20.04:LTS
- Versions
- 3.8.0-1
- 3.8.0-2
- 3.8.0-3
- 3.8.0-4
- 3.8.0-5
- 3.8.1-2ubuntu3
- 3.8.2~rc1-1ubuntu1
- 3.8.2-1
- 3.8.2-1ubuntu1
- 3.8.2-1ubuntu1.1
- 3.8.2-1ubuntu1.2
- 3.8.5-1~20.04
- 3.8.5-1~20.04.2
- 3.8.5-1~20.04.3
- 3.8.10-0ubuntu1~20.04
- Affected ranges
- ECOSYSTEM: < 3.8.10-0ubuntu1~20.04.1
Update to 3.8.10-0ubuntu1~20.04.1
python3.9 Ubuntu:20.04:LTS
- Versions
- 3.9.0~rc1-1~20.04
- 3.9.0-5~20.04
- Affected ranges
- ECOSYSTEM: < 3.9.5-3~20.04.1
Update to 3.9.5-3~20.04.1
Original sources
- https://github.com/sickcodes
- https://docs.python.org/3/library/ipaddress.html
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst
- https://sick.codes/sick-2021-014
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html
- https://bugs.python.org/issue36384
- https://github.com/python/cpython/pull/12577
- https://github.com/python/cpython/pull/25099
- https://security.netapp.com/advisory/ntap-20210622-0003/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.gentoo.org/glsa/202305-02
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-29921