Python ipaddress CVE-2024-4032 incorrect is_private/is_global until v3.12.4
CVE-2024-4032 Published on June 17, 2024
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 wouldnt 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.
Vulnerability Analysis
CVE-2024-4032 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Weakness Type
Incorrect Comparison
The software compares two entities in a security-relevant context, but the comparison is incorrect, which may lead to resultant weaknesses.
Products Associated with CVE-2024-4032
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-4032 are published in these products:
Affected Versions
Python Software Foundation CPython:- Before 3.8.20 is affected.
- Version 3.9.0 and below 3.9.20 is affected.
- Version 3.10.0 and below 3.10.15 is affected.
- Version 3.11.0 and below 3.11.10 is affected.
- Version 3.12.0 and below 3.12.4 is affected.
- Version 3.13.0a1 and below 3.13.0a6 is affected.
- Before 3.12.4 is affected.
- Version 3.13.0a1 and below 3.13.0a6 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.