CVE-2024-4032
CVE-2024-4032 · Incorrect IPv4 and IPv6 private ranges
This page contains facts from public vulnerability sources. Check the original advisory before updating.
The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “private”. This affected the is_private and is_global properties of the ipaddress.IPv4Address, ipaddress.IPv4Network, ipaddress.IPv6Address, and ipaddress.IPv6Network classes, where values wouldn’t be returned in accordance with the latest information from the IANA Special-Purpose Address Registries. CPython 3.12.4 and 3.13.0a6 contain updated information from these registries and thus have the intended behavior.
CVSS 7.5 · High · EPSS 1.1% · Fix available
- Published
- Updated
Affected products and versions
python
- Versions
- ≥ 0, < 3.8.20: Affected (python)
- ≥ 3.9.0, < 3.9.20: Affected (python)
- ≥ 3.10.0, < 3.10.15: Affected (python)
- ≥ 3.11.0, < 3.11.10: Affected (python)
- ≥ 3.12.0, < 3.12.4: Affected (python)
- ≥ 3.13.0a1, < 3.13.0a6: Affected (python)
Update to 3.10.15; Update to 3.11.10; Update to 3.12.4; Update to 3.13.0a6; Update to 3.8.20; Update to 3.9.20
pypy3 Debian:12
- Versions
- 7.3.11+dfsg-2
- 7.3.11+dfsg-2+deb12u1
- 7.3.11+dfsg-2+deb12u2
- 7.3.11+dfsg-2+deb12u3
- 7.3.12+dfsg-1
- 7.3.12~rc1+dfsg-1
- 7.3.12~rc2+dfsg-1
- 7.3.13+dfsg-1
- 7.3.14+dfsg-1
- 7.3.15+dfsg-1
- 7.3.16+dfsg-1
- 7.3.16+dfsg-2
- 7.3.17+dfsg-1
- 7.3.17+dfsg-2
- 7.3.17+dfsg-3
- 7.3.18+dfsg-1
- 7.3.18+dfsg-2
- 7.3.19+dfsg-1
- 7.3.19+dfsg-2
- 7.3.20+dfsg-1
- 7.3.20+dfsg-2
- 7.3.20+dfsg-3
- 7.3.20+dfsg-4
- 7.3.21+dfsg-1
- 7.3.21+dfsg-2
- 7.3.21+dfsg-3
- 7.3.21+dfsg-4
- 7.3.22+dfsg-1
- 7.3.23+dfsg-1
- 7.3.23+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pypy3 Debian:13
- Affected ranges
- ECOSYSTEM: < 7.3.18+dfsg-1
Update to 7.3.18+dfsg-1
pypy3 Debian:14
- Affected ranges
- ECOSYSTEM: < 7.3.18+dfsg-1
Update to 7.3.18+dfsg-1
python3.11 Debian:12
- Versions
- 3.11.2-6
- 3.11.2-6+deb12u1
- 3.11.2-6+deb12u2
- Affected ranges
- ECOSYSTEM: < 3.11.2-6+deb12u3
Update to 3.11.2-6+deb12u3
python3.4 Ubuntu:Pro:14.04:LTS
- Versions
- 3.4~b1-0ubuntu3
- 3.4~b1-4ubuntu4
- 3.4~b1-4ubuntu6
- 3.4~b1-5ubuntu2
- 3.4~b2-1
- 3.4~b3-1ubuntu1
- 3.4~rc1-1build1
- 3.4~rc2-1
- 3.4~rc3-0ubuntu1
- 3.4.0-1
- 3.4.0-2ubuntu1
- 3.4.0-2ubuntu1.1
- 3.4.3-1ubuntu1~14.04.1
- 3.4.3-1ubuntu1~14.04.3
- 3.4.3-1ubuntu1~14.04.4
- 3.4.3-1ubuntu1~14.04.5
- 3.4.3-1ubuntu1~14.04.6
- 3.4.3-1ubuntu1~14.04.7
- 3.4.3-1ubuntu1~14.04.7+esm2
- 3.4.3-1ubuntu1~14.04.7+esm4
- 3.4.3-1ubuntu1~14.04.7+esm6
- 3.4.3-1ubuntu1~14.04.7+esm7
- 3.4.3-1ubuntu1~14.04.7+esm8
- 3.4.3-1ubuntu1~14.04.7+esm10
- 3.4.3-1ubuntu1~14.04.7+esm11
- 3.4.3-1ubuntu1~14.04.7+esm12
- 3.4.3-1ubuntu1~14.04.7+esm13
- 3.4.3-1ubuntu1~14.04.7+esm14
- 3.4.3-1ubuntu1~14.04.7+esm15
- 3.4.3-1ubuntu1~14.04.7+esm16
- 3.4.3-1ubuntu1~14.04.7+esm17
- 3.4.3-1ubuntu1~14.04.7+esm19
- 3.4.3-1ubuntu1~14.04.7+esm20
- 3.4.3-1ubuntu1~14.04.7+esm21
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.5 Ubuntu:Pro:14.04:LTS
- Versions
- 3.5.2-2ubuntu0~16.04.4~14.04.1
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm3
- Affected ranges
- ECOSYSTEM: < 3.5.2-2ubuntu0~16.04.4~14.04.1+esm4
Update to 3.5.2-2ubuntu0~16.04.4~14.04.1+esm4
python3.5 Ubuntu:Pro:16.04:LTS
- Versions
- 3.5.0-3
- 3.5.0-3ubuntu1
- 3.5.1~rc1-2ubuntu1
- 3.5.1-1
- 3.5.1-2
- 3.5.1-3
- 3.5.1-5
- 3.5.1-6ubuntu1
- 3.5.1-6ubuntu2
- 3.5.1-9ubuntu1
- 3.5.1-10
- 3.5.2-2~16.01
- 3.5.2-2~16.04
- 3.5.2-2ubuntu0~16.04.1
- 3.5.2-2ubuntu0~16.04.2
- 3.5.2-2ubuntu0~16.04.3
- 3.5.2-2ubuntu0~16.04.4
- 3.5.2-2ubuntu0~16.04.5
- 3.5.2-2ubuntu0~16.04.8
- 3.5.2-2ubuntu0~16.04.9
- 3.5.2-2ubuntu0~16.04.10
- 3.5.2-2ubuntu0~16.04.11
- 3.5.2-2ubuntu0~16.04.12
- 3.5.2-2ubuntu0~16.04.13
- 3.5.2-2ubuntu0~16.04.13+esm1
- 3.5.2-2ubuntu0~16.04.13+esm2
- 3.5.2-2ubuntu0~16.04.13+esm3
- 3.5.2-2ubuntu0~16.04.13+esm5
- 3.5.2-2ubuntu0~16.04.13+esm6
- 3.5.2-2ubuntu0~16.04.13+esm7
- 3.5.2-2ubuntu0~16.04.13+esm8
- 3.5.2-2ubuntu0~16.04.13+esm9
- 3.5.2-2ubuntu0~16.04.13+esm10
- 3.5.2-2ubuntu0~16.04.13+esm11
- 3.5.2-2ubuntu0~16.04.13+esm12
- 3.5.2-2ubuntu0~16.04.13+esm13
- 3.5.2-2ubuntu0~16.04.13+esm14
- 3.5.2-2ubuntu0~16.04.13+esm15
- Affected ranges
- ECOSYSTEM: < 3.5.2-2ubuntu0~16.04.13+esm16
Update to 3.5.2-2ubuntu0~16.04.13+esm16
python3.6 Ubuntu:Pro:18.04:LTS
- Versions
- 3.6.3-1ubuntu1
- 3.6.4~rc1-1
- 3.6.4~rc1-2
- 3.6.4-1
- 3.6.4-2
- 3.6.4-3build1
- 3.6.4-4
- 3.6.5~rc1-1
- 3.6.5-3
- 3.6.6-1~18.04
- 3.6.7-1~18.04
- 3.6.8-1~18.04.1
- 3.6.8-1~18.04.2
- 3.6.8-1~18.04.3
- 3.6.9-1~18.04
- 3.6.9-1~18.04ubuntu1
- 3.6.9-1~18.04ubuntu1.1
- 3.6.9-1~18.04ubuntu1.3
- 3.6.9-1~18.04ubuntu1.4
- 3.6.9-1~18.04ubuntu1.6
- 3.6.9-1~18.04ubuntu1.7
- 3.6.9-1~18.04ubuntu1.8
- 3.6.9-1~18.04ubuntu1.9
- 3.6.9-1~18.04ubuntu1.10
- 3.6.9-1~18.04ubuntu1.12
- 3.6.9-1~18.04ubuntu1.13
- 3.6.9-1~18.04ubuntu1.13+esm1
- 3.6.9-1~18.04ubuntu1.13+esm2
- 3.6.9-1~18.04ubuntu1.13+esm3
- 3.6.9-1~18.04ubuntu1.13+esm4
- 3.6.9-1~18.04ubuntu1.13+esm5
- 3.6.9-1~18.04ubuntu1.13+esm6
- 3.6.9-1~18.04ubuntu1.13+esm7
- 3.6.9-1~18.04ubuntu1.13+esm8
- 3.6.9-1~18.04ubuntu1.13+esm9
- 3.6.9-1~18.04ubuntu1.13+esm10
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.7 Ubuntu:Pro:18.04:LTS
- Versions
- 3.7.0~a2-1
- 3.7.0~a3-1
- 3.7.0~a3-2
- 3.7.0~a3-3
- 3.7.0~a4-1
- 3.7.0~b1-1
- 3.7.0~b1-1build1
- 3.7.0~b2-1
- 3.7.0~b3-1
- 3.7.0-1~18.04
- 3.7.1-1~18.04
- 3.7.3-2~18.04.1
- 3.7.5-2~18.04
- 3.7.5-2~18.04.4
- 3.7.5-2ubuntu1~18.04.2
- 3.7.5-2ubuntu1~18.04.2+esm1
- 3.7.5-2ubuntu1~18.04.2+esm2
- 3.7.5-2ubuntu1~18.04.2+esm3
- 3.7.5-2ubuntu1~18.04.2+esm4
- 3.7.5-2ubuntu1~18.04.2+esm5
- 3.7.5-2ubuntu1~18.04.2+esm6
- 3.7.5-2ubuntu1~18.04.2+esm7
- 3.7.5-2ubuntu1~18.04.2+esm8
- 3.7.5-2ubuntu1~18.04.2+esm9
- 3.7.5-2ubuntu1~18.04.2+esm10
- 3.7.5-2ubuntu1~18.04.2+esm11
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
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
- 3.8.0-3ubuntu1~18.04.2+esm2
- 3.8.0-3ubuntu1~18.04.2+esm3
- 3.8.0-3ubuntu1~18.04.2+esm4
- 3.8.0-3ubuntu1~18.04.2+esm5
- 3.8.0-3ubuntu1~18.04.2+esm6
- 3.8.0-3ubuntu1~18.04.2+esm7
- 3.8.0-3ubuntu1~18.04.2+esm8
- 3.8.0-3ubuntu1~18.04.2+esm9
- 3.8.0-3ubuntu1~18.04.2+esm10
- 3.8.0-3ubuntu1~18.04.2+esm11
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
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
- 3.8.10-0ubuntu1~20.04.1
- 3.8.10-0ubuntu1~20.04.2
- 3.8.10-0ubuntu1~20.04.4
- 3.8.10-0ubuntu1~20.04.5
- 3.8.10-0ubuntu1~20.04.6
- 3.8.10-0ubuntu1~20.04.7
- 3.8.10-0ubuntu1~20.04.8
- 3.8.10-0ubuntu1~20.04.9
- 3.8.10-0ubuntu1~20.04.10
- Affected ranges
- ECOSYSTEM: < 3.8.10-0ubuntu1~20.04.11
Update to 3.8.10-0ubuntu1~20.04.11
python3.9 Ubuntu:Pro:20.04:LTS
- Versions
- 3.9.0~rc1-1~20.04
- 3.9.0-5~20.04
- 3.9.5-3~20.04.1
- 3.9.5-3ubuntu0~20.04.1
- 3.9.5-3ubuntu0~20.04.1+esm1
- 3.9.5-3ubuntu0~20.04.1+esm2
- 3.9.5-3ubuntu0~20.04.1+esm3
- 3.9.5-3ubuntu0~20.04.1+esm4
- 3.9.5-3ubuntu0~20.04.1+esm5
- 3.9.5-3ubuntu0~20.04.1+esm6
- 3.9.5-3ubuntu0~20.04.1+esm7
- 3.9.5-3ubuntu0~20.04.1+esm8
- 3.9.5-3ubuntu0~20.04.1+esm9
- 3.9.5-3ubuntu0~20.04.1+esm10
- 3.9.5-3ubuntu0~20.04.1+esm11
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.10 Ubuntu:22.04:LTS
- Versions
- 3.10.0-2
- 3.10.0-3
- 3.10.0-4
- 3.10.0-5
- 3.10.0-5build1
- 3.10.1-1
- 3.10.1-2
- 3.10.2-1
- 3.10.2-5
- 3.10.2-7
- 3.10.3-1
- 3.10.4-3
- 3.10.4-3ubuntu0.1
- 3.10.6-1~22.04
- 3.10.6-1~22.04.1
- 3.10.6-1~22.04.2
- 3.10.6-1~22.04.2ubuntu1
- 3.10.6-1~22.04.2ubuntu1.1
- 3.10.12-1~22.04.2
- 3.10.12-1~22.04.3
- 3.10.12-1~22.04.4
- Affected ranges
- ECOSYSTEM: < 3.10.12-1~22.04.5
Update to 3.10.12-1~22.04.5
python3.11 Ubuntu:Pro:22.04:LTS
- Versions
- 3.11.0~rc1-1~22.04
- 3.11.0~rc1-1~22.04.1~esm1
- 3.11.0~rc1-1~22.04.1~esm2
- 3.11.0~rc1-1~22.04.1~esm3
- 3.11.0~rc1-1~22.04.1~esm4
- 3.11.0~rc1-1~22.04.1~esm5
- 3.11.0~rc1-1~22.04.1~esm6
- 3.11.0~rc1-1~22.04.1~esm7
- 3.11.0~rc1-1~22.04.1~esm8
- 3.11.0~rc1-1~22.04.1~esm9
- 3.11.0~rc1-1~22.04.1
- 3.11.0~rc1-1~22.04.1+esm1
- 3.11.0~rc1-1~22.04.1+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.12 Ubuntu:24.04:LTS
- Versions
- 3.12.0-1
- 3.12.0-5
- 3.12.0-6
- 3.12.0-7
- 3.12.1-2
- 3.12.2-1
- 3.12.2-4build3
- 3.12.2-4build4
- 3.12.2-5ubuntu3
- 3.12.3-1
- Affected ranges
- ECOSYSTEM: < 3.12.3-1ubuntu0.1
Update to 3.12.3-1ubuntu0.1
Original sources
- https://github.com/python/cpython/issues/113171
- https://github.com/python/cpython/pull/113179
- https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
- https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
- https://mail.python.org/archives/list/[email protected]/thread/NRUHDUS2IV2USIZM2CVMSFL6SCKU3RZA/
- https://github.com/python/cpython/commit/22adf29da8d99933ffed8647d3e0726edd16f7f8
- https://github.com/python/cpython/commit/40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f
- https://github.com/python/cpython/commit/895f7e2ac23eff4743143beef0f0c5ac71ea27d3
- https://github.com/python/cpython/commit/ba431579efdcbaed7a96f2ac4ea0775879a332fb
- https://github.com/python/cpython/commit/c62c9e518b784fe44432a3f4fc265fb95b651906
- https://github.com/python/cpython/commit/f86b17ac511e68192ba71f27e752321a3252cee3
- http://www.openwall.com/lists/oss-security/2024/06/17/3
- https://security.netapp.com/advisory/ntap-20240726-0004/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-4032