CVE-2024-4032: Python Cpython

High severity, CVSS 7.5. EPSS: 1.1% chance of exploitation in the next 30 days.

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 products

  • Python Cpython: before 3.12.4 (fixed in 3.12.4); from 3.13.0a1, before 3.13.0a6 (fixed in 3.13.0a6)
  • Python Software Foundation Cpython: before 3.8.20 (fixed in 3.8.20); from 3.9.0, before 3.9.20 (fixed in 3.9.20); from 3.10.0, before 3.10.15 (fixed in 3.10.15); from 3.11.0, before 3.11.10 (fixed in 3.11.10); from 3.12.0, before 3.12.4 (fixed in 3.12.4); from 3.13.0a1, before 3.13.0a6 (fixed in 3.13.0a6)

Published 2024-06-17. Last modified 2026-06-17.