Python CPython up to 3.12.3/3.13.0a5 IPv6 Address is_private/is_global comparison

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.4$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB 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: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Comparison
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 207761
Nessus Name: AlmaLinux 8 : python3 (ALSA-2024:6975)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: CPython 3.12.4/3.13.0a6
Patch: 22adf29da8d99933ffed8647d3e0726edd16f7f8

Timelineinfo

04/22/2024 🔍
06/17/2024 +56 days 🔍
06/17/2024 +0 days 🔍
09/29/2024 +104 days 🔍

Sourcesinfo

Product: github.com

Advisory: 113171
Status: Confirmed

CVE: CVE-2024-4032 (🔍)
GCVE (CVE): GCVE-0-2024-4032
GCVE (VulDB): GCVE-100-268815

Entryinfo

Created: 06/17/2024 18:53
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!