CVE-2024-4032
published 2024-06-17CVE-2024-4032: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “private”. This…
PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
1.03%
60.0th percentile
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.
Affected
18 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | pypy3 | < pypy3 7.3.18+dfsg-1 (forky) | pypy3 7.3.18+dfsg-1 (forky) |
| debian | python2.7 | < pypy3 7.3.18+dfsg-1 (forky) | pypy3 7.3.18+dfsg-1 (forky) |
| debian | python3.11 | < pypy3 7.3.18+dfsg-1 (forky) | pypy3 7.3.18+dfsg-1 (forky) |
| debian | python3.13 | < pypy3 7.3.18+dfsg-1 (forky) | pypy3 7.3.18+dfsg-1 (forky) |
| debian | python3.9 | < pypy3 7.3.18+dfsg-1 (forky) | pypy3 7.3.18+dfsg-1 (forky) |
| msrc | azl3_python3_3.12.3-5_on_azure_linux_3.0 | — | — |
| msrc | azl3_python3_3.12.9-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_tensorflow_2.16.1-9_on_azure_linux_3.0 | — | — |
| msrc | cbl2_python3_3.9.19-13_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_python3_3.9.19-6_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| python_software_foundation | cpython | < 3.8.20 | 3.8.20 |
| python_software_foundation | cpython | >= 3.10.0 < 3.10.15 | 3.10.15 |
| python_software_foundation | cpython | >= 3.11.0 < 3.11.10 | 3.11.10 |
| python_software_foundation | cpython | >= 3.12.0 < 3.12.4 | 3.12.4 |
| python_software_foundation | cpython | >= 3.13.0a1 < 3.13.0a6 | 3.13.0a6 |
| python_software_foundation | cpython | >= 3.9.0 < 3.9.20 | 3.9.20 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.4HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Python regression
vendor_ubuntu·2025-03-24·CVSS 3.7
CVE-2025-0938 [LOW] Python regression
Title: Python regression
Summary: USN-7348-1 introduced a regression in Python.
USN-7348-1 fixed vulnerabilities in Python. The update introduced a
regression. This update fixes the problem.
We apologize for the inconvenience.
Original advisory details:
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered “private” or
“globally reachable”. This could possibly result in applications applying
incorrect security policies. This issue only affected Ubuntu 14.04 LTS
and Ubuntu 16.04 LTS. (CVE-2024-4032)
It was discovered that Python incorrectly handled quoting path names when
using the venv module. A local attacker able to control virtual
environments could possibly use this issue to execute arbitrary code when
the
Ubuntu
Python vulnerabilities
vendor_ubuntu·2025-03-12·CVSS 3.7
CVE-2024-9287 [LOW] Python vulnerabilities
Title: Python vulnerabilities
Summary: Several security issues were fixed in Python.
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered “private” or
“globally reachable”. This could possibly result in applications applying
incorrect security policies. This issue only affected Ubuntu 14.04 LTS
and Ubuntu 16.04 LTS. (CVE-2024-4032)
It was discovered that Python incorrectly handled quoting path names when
using the venv module. A local attacker able to control virtual
environments could possibly use this issue to execute arbitrary code when
the virtual environment is activated. (CVE-2024-9287)
It was discovered that Python incorrectly handled parsing bracketed hosts.
A remote attacker could possibly use this iss
Ubuntu
Python vulnerability
vendor_ubuntu·2024-08-01
CVE-2024-4032 Python vulnerability
Title: Python vulnerability
Summary: Python could allow unintended access to network services.
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered “private” or
“globally reachable”. This could possibly result in applications applying
incorrect security policies.
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
Python vulnerabilities
vendor_ubuntu·2024-07-30·CVSS 7.4
CVE-2024-0397 [HIGH] Python vulnerabilities
Title: Python vulnerabilities
Summary: Several security issues were fixed in Python.
It was discovered that the Python ssl module contained a memory race
condition when handling the APIs to obtain the CA certificates and
certificate store statistics. This could possibly result in applications
obtaining wrong results, leading to various SSL issues. (CVE-2024-0397)
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered "private" or
"globally reachable". This could possibly result in applications applying
incorrect security policies. (CVE-2024-4032)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
python: incorrect IPv4 and IPv6 private ranges
vendor_redhat·2024-06-17·CVSS 7.5
CVE-2024-4032 [HIGH] CWE-440 python: incorrect IPv4 and IPv6 private ranges
python: incorrect IPv4 and IPv6 private ranges
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.
A flaw was found in Python. The ipaddress module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “private”. Due to th
Microsoft
Incorrect IPv4 and IPv6 private ranges
vendor_msrc·2024-06-11·CVSS 7.5
CVE-2024-4032 [HIGH] CWE-697 Incorrect IPv4 and IPv6 private ranges
Incorrect IPv4 and IPv6 private ranges
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
PSF: PSF
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/
Debian
CVE-2024-4032: pypy3 - The “ipaddress” module contained incorrect information about whether certain IPv...
vendor_debian·2024·CVSS 7.5
CVE-2024-4032 [HIGH] CVE-2024-4032: pypy3 - The “ipaddress” module contained incorrect information about whether certain IPv...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 7.3.18+dfsg-1)
sid: resolved (fixed in 7.3.18+dfsg-1)
trixie: resolved (fixed in 7.3.18+dfsg-1)
GHSA
flyto-core has SSRF guard bypass via IPv6 transition addresses (IPv4-mapped / 6to4 / NAT64) in validate_url_ssrf
ghsa·2026-07-06
CVE-2026-55787 [HIGH] CWE-918 flyto-core has SSRF guard bypass via IPv6 transition addresses (IPv4-mapped / 6to4 / NAT64) in validate_url_ssrf
flyto-core has SSRF guard bypass via IPv6 transition addresses (IPv4-mapped / 6to4 / NAT64) in validate_url_ssrf
## Summary
`flyto-core`'s SSRF protection (`validate_url_ssrf` / `is_private_ip` in `src/core/utils.py`) blocks private and metadata destinations by resolving the host and testing the resulting IP for membership in a hardcoded `PRIVATE_IP_RANGES` list. That list contains only the *native* RFC 1918 / loopback / link-local / unique-local ranges. It does **not** account for IPv6 transition address forms that embed an IPv4 (or loopback) target:
- IPv4-mapped `::ffff:a.b.c.d`
- IPv4-compatible `::a.b.c.d`
- 6to4 `2002::/16`
- NAT64 well-known prefix `64:ff9b::/96` and local-use `64:ff9b:1::/48`
A workflow author can submit a URL with a literal transition-form host (for example `h
OSV
python3.5, python3.8 regression
osv·2025-03-24·CVSS 6.3
[MEDIUM] python3.5, python3.8 regression
python3.5, python3.8 regression
USN-7348-1 fixed vulnerabilities in Python. The update introduced a
regression. This update fixes the problem.
We apologize for the inconvenience.
Original advisory details:
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered “private” or
“globally reachable”. This could possibly result in applications applying
incorrect security policies. This issue only affected Ubuntu 14.04 LTS
and Ubuntu 16.04 LTS. (CVE-2024-4032)
It was discovered that Python incorrectly handled quoting path names when
using the venv module. A local attacker able to control virtual
environments could possibly use this issue to execute arbitrary code when
the virtual environment is activated. (CVE-2024-9287
OSV
python3.5, python3.8 vulnerabilities
osv·2025-03-12·CVSS 6.3
CVE-2024-4032 [MEDIUM] python3.5, python3.8 vulnerabilities
python3.5, python3.8 vulnerabilities
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered “private” or
“globally reachable”. This could possibly result in applications applying
incorrect security policies. This issue only affected Ubuntu 14.04 LTS
and Ubuntu 16.04 LTS. (CVE-2024-4032)
It was discovered that Python incorrectly handled quoting path names when
using the venv module. A local attacker able to control virtual
environments could possibly use this issue to execute arbitrary code when
the virtual environment is activated. (CVE-2024-9287)
It was discovered that Python incorrectly handled parsing bracketed hosts.
A remote attacker could possibly use this issue to perform a Server-Side
Request Forgery (SSRF
OSV
python3.10, python3.8 vulnerabilities
osv·2024-07-30·CVSS 7.4
CVE-2024-0397 [HIGH] python3.10, python3.8 vulnerabilities
python3.10, python3.8 vulnerabilities
It was discovered that the Python ssl module contained a memory race
condition when handling the APIs to obtain the CA certificates and
certificate store statistics. This could possibly result in applications
obtaining wrong results, leading to various SSL issues. (CVE-2024-0397)
It was discovered that the Python ipaddress module contained incorrect
information about which IP address ranges were considered "private" or
"globally reachable". This could possibly result in applications applying
incorrect security policies. (CVE-2024-4032)
GHSA
GHSA-mh6q-v4mp-2cc7: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
ghsa_unreviewed·2024-06-17
CVE-2024-4032 [HIGH] CWE-697 GHSA-mh6q-v4mp-2cc7: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
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.
OSV
CVE-2024-4032: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
osv·2024-06-17·CVSS 7.5
CVE-2024-4032 [HIGH] CVE-2024-4032: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
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.
OSV
CVE-2024-4032: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
osv·2024-06-17·CVSS 7.5
CVE-2024-4032 [HIGH] CVE-2024-4032: The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “priva
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.
No detection rules found.
No public exploits indexed.
http://www.openwall.com/lists/oss-security/2024/06/17/3https://github.com/python/cpython/commit/22adf29da8d99933ffed8647d3e0726edd16f7f8https://github.com/python/cpython/commit/40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69fhttps://github.com/python/cpython/commit/895f7e2ac23eff4743143beef0f0c5ac71ea27d3https://github.com/python/cpython/commit/ba431579efdcbaed7a96f2ac4ea0775879a332fbhttps://github.com/python/cpython/commit/c62c9e518b784fe44432a3f4fc265fb95b651906https://github.com/python/cpython/commit/f86b17ac511e68192ba71f27e752321a3252cee3https://github.com/python/cpython/issues/113171https://github.com/python/cpython/pull/113179https://mail.python.org/archives/list/[email protected]/thread/NRUHDUS2IV2USIZM2CVMSFL6SCKU3RZA/https://security.netapp.com/advisory/ntap-20240726-0004/https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtmlhttps://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtmlhttp://www.openwall.com/lists/oss-security/2024/06/17/3https://github.com/python/cpython/commit/22adf29da8d99933ffed8647d3e0726edd16f7f8https://github.com/python/cpython/commit/40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69fhttps://github.com/python/cpython/commit/895f7e2ac23eff4743143beef0f0c5ac71ea27d3https://github.com/python/cpython/commit/ba431579efdcbaed7a96f2ac4ea0775879a332fbhttps://github.com/python/cpython/commit/c62c9e518b784fe44432a3f4fc265fb95b651906https://github.com/python/cpython/commit/f86b17ac511e68192ba71f27e752321a3252cee3https://github.com/python/cpython/issues/113171https://github.com/python/cpython/pull/113179https://lists.debian.org/debian-lts-announce/2024/12/msg00000.htmlhttps://mail.python.org/archives/list/[email protected]/thread/NRUHDUS2IV2USIZM2CVMSFL6SCKU3RZA/https://security.netapp.com/advisory/ntap-20240726-0004/https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtmlhttps://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
2024-06-17
Published