Skip to main content
CVE-2024-4032VulnerabilityPublished Updated

CVE-2024-4032: Python Software Foundation CPython · Vulnerability

Affects Python Software Foundation CPythonSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
PyPIcpythonpkg:pypi/cpythonOther threatsAffected
  • =0
  • =3.9.0
  • =3.10.0
  • =3.11.0
  • =3.12.0
  • =3.13.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade affected Python environments to CPython versions 3.12.4 or 3.13.0a6 or later, which contain the corrected ipaddress module data. For environments where immediate upgrading is not feasible, organizations should implement compensating controls such as manual validation of IP address classifications against the latest IANA Special-Purpose Address Registries or use alternative libraries with verified address classification. Network security teams should audit firewall and access control rules that rely on Python ipaddress module outputs to ensure no misconfigurations exist due to this vulnerability. Incorporating additional network monitoring to detect anomalous access patterns involving IP addresses previously misclassified can help identify exploitation attempts. Organizations should also review and update internal policies and automation scripts that depend on the ipaddress module to ensure they handle IP address classifications correctly. Maintaining awareness of updates from the Python Software Foundation and applying patches promptly is critical. Finally, penetration testing and vulnerability scanning should include checks for this specific vulnerability to validate remediation.

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.

References

Community reviews

Loading reviews…