banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-4032

CVE-2024-4032: Python ipaddress Module Info Disclosure

CVE-2024-4032 is an information disclosure flaw in Python's ipaddress module that incorrectly identifies certain IPv4 and IPv6 addresses as private or globally reachable. This article covers technical details, affected versions, impact, and mitigation.

Published: January 28, 2026

CVE-2024-4032 Overview

The Python 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.

Critical Impact

Applications relying on the ipaddress module for network access control decisions may incorrectly classify IP addresses, potentially allowing unauthorized network access or leaking sensitive information to unintended destinations.

Affected Products

  • CPython versions prior to 3.12.4
  • CPython versions prior to 3.13.0a6
  • Any Python application using the ipaddress module for IP classification

Discovery Timeline

  • 2024-06-17 - CVE-2024-4032 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-4032

Vulnerability Analysis

This vulnerability falls under CWE-697 (Incorrect Comparison), where the ipaddress module's internal data structures contained outdated IANA registry information. Applications that use is_private or is_global properties to make security decisions—such as blocking connections to private networks or restricting data transmission to certain address ranges—could be making incorrect determinations.

The core issue lies in the module's hardcoded address range classifications not reflecting the latest IANA Special-Purpose Address Registries. When IP addresses are evaluated using these properties, the returned boolean values may not accurately represent whether an address is truly private or globally reachable according to current IANA standards.

Root Cause

The root cause is the use of outdated IANA registry data within the Python ipaddress module. The IANA Special-Purpose Address Registries (for both IPv4 and IPv6) are periodically updated to reflect new address allocations and designations. The Python module had not been updated to match these registry changes, causing classification discrepancies.

Attack Vector

The vulnerability is exploitable over the network. An attacker could exploit applications that rely on the ipaddress module for security-critical decisions. For example:

  • An application using is_private to block connections to internal networks might incorrectly allow connections to addresses that should be classified as private
  • A service restricting data exports to "global" addresses might inadvertently send sensitive data to addresses incorrectly classified as globally reachable
  • Network filtering or firewall bypass could occur if classification decisions are made using the flawed module

The vulnerability mechanism involves the is_private and is_global properties returning incorrect boolean values. When an application calls these properties on an IP address object, the module checks the address against internal range definitions. With outdated registry data, certain address ranges would return incorrect classification results, potentially undermining access control logic.

For detailed technical information, see the GitHub Issue Discussion and the Python Security Announcement.

Detection Methods for CVE-2024-4032

Indicators of Compromise

  • Unexpected network connections being allowed or blocked by applications using Python's ipaddress module
  • Audit logs showing IP address classifications that don't match expected IANA registry definitions
  • Security controls bypassed for specific IP address ranges that should be restricted

Detection Strategies

  • Review application code for usage of ipaddress.IPv4Address.is_private, ipaddress.IPv4Address.is_global, ipaddress.IPv6Address.is_private, and ipaddress.IPv6Address.is_global properties
  • Audit network access control decisions that rely on Python's ipaddress module classification
  • Compare IP classification results against current IANA registry data to identify discrepancies
  • Scan Python environments to identify versions prior to 3.12.4 or 3.13.0a6

Monitoring Recommendations

  • Implement logging for all IP classification decisions made by applications using the ipaddress module
  • Monitor for anomalous network traffic patterns that could indicate misclassified addresses
  • Set up alerts for connections to or from IP addresses in IANA special-purpose ranges
  • Track Python version deployments across infrastructure to ensure patched versions are in use

How to Mitigate CVE-2024-4032

Immediate Actions Required

  • Upgrade CPython to version 3.12.4 or 3.13.0a6 or later immediately
  • Audit all applications using the ipaddress module for security-critical IP classification decisions
  • Implement additional validation layers for IP address classification beyond the ipaddress module
  • Review network access control policies that may have been impacted by incorrect classifications

Patch Information

The vulnerability has been addressed in CPython versions 3.12.4 and 3.13.0a6, which contain updated IANA registry information. Multiple commits were applied to fix this issue across different Python branches:

  • Commit 22adf29
  • Commit 40d75c2
  • Commit ba43157

Additional vendor advisories are available from NetApp and Debian LTS.

Workarounds

  • Implement custom IP classification logic that directly references current IANA registry data rather than relying solely on the ipaddress module
  • Add secondary validation using external IP classification services or libraries with up-to-date registry information
  • Apply network-level access controls as an additional layer of defense, independent of application-level IP classification
  • For critical applications, maintain a manually-updated allowlist/blocklist of known special-purpose address ranges
bash
# Verify Python version and upgrade if necessary
python3 --version
# If version is below 3.12.4, upgrade using your package manager

# Example for systems using pyenv
pyenv install 3.12.4
pyenv global 3.12.4

# Example for Debian/Ubuntu systems
sudo apt update && sudo apt install python3

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPython

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-697
  • Technical References
  • Openwall OSS Security Update

  • GitHub Commit Update

  • GitHub Commit Change

  • GitHub Commit Modification

  • GitHub Commit Fix

  • GitHub Commit Improvement

  • GitHub Commit Update

  • GitHub Issue Discussion

  • GitHub Pull Request

  • Python Security Announce

  • NetApp Security Advisory

  • IANA IPv4 Special Registry

  • IANA IPv6 Special Registry

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2026-2297: CPython Information Disclosure Vulnerability

  • CVE-2025-12781: Python base64 Module Data Integrity Flaw

  • CVE-2021-28861: Python Open Redirection Vulnerability

  • CVE-2023-40217: Python TLS Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use