# CVE-2024-4032: Incorrect IPv4 and IPv6 private ranges

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-02)
- Published: 2024-06-17T15:05:58.827Z
- Modified: 2026-06-17T08:00:58.983Z
- Also known as: PSF-2024-5, BIT-LIBPYTHON-2024-4032, BIT-PYTHON-2024-4032, BIT-PYTHON-MIN-2024-4032
- Weaknesses: CWE-697
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: PSF

## Description

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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.4; from 3.13.0a1 before 3.13.0a6
- python cpython: before 3.12.4; from 3.13.0a1 before 3.13.0a6
- https://github.com/python/cpython: before 22adf29da8d99933ffed8647d3e0726edd16f7f8; before 40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f; before 895f7e2ac23eff4743143beef0f0c5ac71ea27d3; before ba431579efdcbaed7a96f2ac4ea0775879a332fb; before c62c9e518b784fe44432a3f4fc265fb95b651906; before f86b17ac511e68192ba71f27e752321a3252cee3
- libpython (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.4
- python (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.4
- python-min (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.4

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/113171> (issue-tracking, report, web)
- <https://github.com/python/cpython/pull/113179> (patch, web)
- <https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml> (web)
- <https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml> (web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/NRUHDUS2IV2USIZM2CVMSFL6SCKU3RZA/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/22adf29da8d99933ffed8647d3e0726edd16f7f8> (fix, patch, web)
- <https://github.com/python/cpython/commit/40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f> (fix, patch, web)
- <https://github.com/python/cpython/commit/895f7e2ac23eff4743143beef0f0c5ac71ea27d3> (fix, patch, web)
- <https://github.com/python/cpython/commit/ba431579efdcbaed7a96f2ac4ea0775879a332fb> (fix, patch, web)
- <https://github.com/python/cpython/commit/c62c9e518b784fe44432a3f4fc265fb95b651906> (fix, patch, web)
- <https://github.com/python/cpython/commit/f86b17ac511e68192ba71f27e752321a3252cee3> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2024/06/17/3> (web)
- <https://security.netapp.com/advisory/ntap-20240726-0004/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4032> (web)

## Sources

- CVE List: [CVE-2024-4032](https://www.cve.org/CVERecord?id=CVE-2024-4032), CVE Terms of Use, modified 2025-11-03
- Python Software Foundation: [PSF-2024-5](https://osv.dev/vulnerability/PSF-2024-5), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2024-4032](https://nvd.nist.gov/vuln/detail/CVE-2024-4032), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2024-4032](https://osv.dev/vulnerability/BIT-LIBPYTHON-2024-4032), Apache-2.0, modified 2026-05-11
- Bitnami Vulnerability Database: [BIT-PYTHON-2024-4032](https://osv.dev/vulnerability/BIT-PYTHON-2024-4032), Apache-2.0, modified 2026-05-11
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2024-4032](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2024-4032), Apache-2.0, modified 2026-05-11

---

Page: https://cve.day/CVE-2024-4032 · Whole record: https://cve.day/CVE-2024-4032.json · Rebuilt by cve.day 2026-11-25T22:58:41.950Z
