Skip to main content
← All vulnerabilities
CVE-2024-4032

Incorrect IPv4 and IPv6 private ranges

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.4, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.8.20; From 3.9.0 · fixed in 3.9.20; From 3.10.0 · fixed in 3.10.15; From 3.11.0 · fixed in 3.11.10; From 3.12.0 · fixed in 3.12.4; From 3.13.0a1 · fixed in 3.13.0a6

References 13

GitHub · python/cpython

iana.org

mail.python.org

openwall.com

security.netapp.com