Python CPython up to 3.12.3/3.13.0a5 IPv6 Address is_private/is_global comparison
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, has been found in Python CPython up to 3.12.3/3.13.0a5. This affects the function ipaddress.IPv4Address/ipaddress.IPv4Network/ipaddress.IPv6Address/ipaddress.IPv6Network of the component IPv6 Address Handler. Performing a manipulation of the argument is_private/is_global results in an unknown weakness.
This vulnerability is known as CVE-2024-4032. No exploit is available.
It is advisable to upgrade the affected component.
Details
A vulnerability, which was classified as problematic, was found in Python CPython up to 3.12.3/3.13.0a5. This affects the function ipaddress.IPv4Address/ipaddress.IPv4Network/ipaddress.IPv6Address/ipaddress.IPv6Network of the component IPv6 Address Handler. The manipulation of the argument is_private/is_global with an unknown input leads to a unknown weakness. CWE is classifying the issue as CWE-697. The product compares two entities in a security-relevant context, but the comparison is incorrect, which may lead to resultant weaknesses. The impact remains unknown. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2024-4032 since 04/22/2024. The exploitability is told to be easy. Technical details of the vulnerability are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 207761 (AlmaLinux 8 : python3 (ALSA-2024:6975)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 3.12.4 or 3.13.0a6 eliminates this vulnerability. Applying the patch 22adf29da8d99933ffed8647d3e0726edd16f7f8 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (207761). Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Vendor
Name
Version
License
Website
- Product: https://github.com/python/cpython/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.4
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 7.5
CNA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: ComparisonCWE: CWE-697
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 207761
Nessus Name: AlmaLinux 8 : python3 (ALSA-2024:6975)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: CPython 3.12.4/3.13.0a6
Patch: 22adf29da8d99933ffed8647d3e0726edd16f7f8
Timeline
04/22/2024 🔍06/17/2024 🔍
06/17/2024 🔍
09/29/2024 🔍
Sources
Product: github.comAdvisory: 113171
Status: Confirmed
CVE: CVE-2024-4032 (🔍)
GCVE (CVE): GCVE-0-2024-4032
GCVE (VulDB): GCVE-100-268815
Entry
Created: 06/17/2024 18:53Updated: 09/29/2024 22:45
Changes: 06/17/2024 18:53 (58), 06/18/2024 16:54 (1), 08/30/2024 20:45 (13), 09/29/2024 22:45 (2)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.