Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-2020-14422

CVE-2020-14422: Python ipaddress.py DoS Vulnerability

CVE-2020-14422 is a denial of service flaw in Python's ipaddress.py affecting hash computation in IPv4Interface and IPv6Interface classes. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-14422 Overview

CVE-2020-14422 is an Algorithmic Complexity Attack vulnerability in Python's Lib/ipaddress.py module that improperly computes hash values in the IPv4Interface and IPv6Interface classes. This flaw might allow a remote attacker to cause a denial of service if an application is affected by the performance of a dictionary containing IPv4Interface or IPv6Interface objects, and the attacker can cause many dictionary entries to be created.

Critical Impact

Applications using Python's ipaddress module to process untrusted network interface data in dictionary structures may experience severe performance degradation or denial of service conditions when an attacker triggers hash collisions.

Affected Products

  • Python versions through 3.8.3
  • openSUSE Leap 15.1 and 15.2
  • Fedora 31 and 32
  • Oracle Enterprise Manager Ops Center 12.4.0.0

Discovery Timeline

  • June 18, 2020 - CVE-2020-14422 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-14422

Vulnerability Analysis

The vulnerability exists in Python's ipaddress.py library, specifically within the hash computation methods for IPv4Interface and IPv6Interface classes. When these objects are used as dictionary keys, the improper hash value computation can lead to excessive hash collisions. In Python dictionaries, hash collisions cause lookups and insertions to degrade from O(1) average time complexity to O(n) worst-case complexity.

An attacker who can control the IP interface values being stored in a dictionary can craft inputs that all hash to the same or similar bucket values. As the number of collisions grows, dictionary operations become increasingly expensive, consuming CPU resources and potentially rendering the application unresponsive. This is classified under CWE-330 (Use of Insufficiently Random Values).

Root Cause

The root cause is the improper hash value calculation algorithm used in the IPv4Interface and IPv6Interface classes. The hash function did not produce sufficiently distributed hash values across the possible input space, making it trivial for an attacker to generate inputs that would collide in Python's internal hash table implementation. The fix, implemented in Python GitHub Pull Request #20956, addresses the hash computation to ensure proper distribution of hash values.

Attack Vector

The attack requires network access where an attacker can cause an application to create multiple IPv4Interface or IPv6Interface objects and store them in dictionary structures. This could occur in applications that:

  • Process network configuration data from untrusted sources
  • Handle IP address information in web services or APIs
  • Parse network interface data from user-controlled input
  • Maintain caches or lookups keyed by IP interface objects

The attacker sends specially crafted IP interface values designed to produce hash collisions. As the dictionary grows with colliding entries, normal dictionary operations become computationally expensive, degrading application performance. The attack complexity is high as it requires specific application behaviors and the ability to influence dictionary contents with controlled interface values.

Detection Methods for CVE-2020-14422

Indicators of Compromise

  • Unusual CPU consumption spikes in Python processes handling network interface data
  • Abnormally slow dictionary operations in applications using ipaddress module
  • Large numbers of IPv4Interface or IPv6Interface objects being created in short time periods
  • Application timeouts or unresponsiveness when processing IP interface data

Detection Strategies

  • Monitor Python application performance metrics for degradation patterns consistent with hash collision attacks
  • Implement application-level logging to track the creation rate of IPv4Interface and IPv6Interface objects
  • Review application code for dictionary usage patterns involving IP interface objects from untrusted sources
  • Deploy runtime analysis tools to identify excessive hash collisions in Python dictionaries

Monitoring Recommendations

  • Set up alerts for abnormal CPU utilization in Python applications processing network data
  • Implement rate limiting on endpoints that accept IP interface data from external sources
  • Monitor application response times for gradual degradation indicative of algorithmic complexity attacks
  • Track memory allocation patterns for dictionary growth anomalies

How to Mitigate CVE-2020-14422

Immediate Actions Required

  • Upgrade Python to a patched version: v3.5.10, v3.6.12, v3.7.9, v3.8.4 or later, or v3.9.0 or later
  • Audit applications for usage of IPv4Interface and IPv6Interface objects in dictionaries with untrusted input
  • Implement input validation and rate limiting on endpoints processing IP interface data
  • Consider using alternative data structures or IP address string representations as dictionary keys until patching is complete

Patch Information

The vulnerability is fixed in multiple Python versions. Apply the appropriate update based on your Python branch:

BranchFixed Versions
3.5.xv3.5.10, v3.5.10rc1
3.6.xv3.6.12
3.7.xv3.7.9
3.8.xv3.8.4, v3.8.5, v3.8.6
3.9.xv3.9.0 and all release candidates

For detailed patch information, see the Python Issue Tracker Entry and the Python GitHub Pull Request.

Distribution-specific advisories are available from openSUSE, Debian LTS, and Gentoo GLSA.

Workarounds

  • Avoid using IPv4Interface or IPv6Interface objects as dictionary keys when processing untrusted data
  • Use string representations of IP addresses as dictionary keys instead of interface objects
  • Implement application-level limits on the number of IP interface objects that can be created per request
  • Consider using IPv4Address or IPv6Address objects instead of interface classes where network mask information is not required
bash
# Check current Python version
python3 --version

# Update Python on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade python3

# Update Python on Fedora systems
sudo dnf upgrade python3

# Update Python on openSUSE systems
sudo zypper update python3

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPython

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-330
  • Technical References
  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • Python GitHub Pull Request

  • Debian LTS Security Announcement

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Advisory

  • NetApp Security Advisory

  • Ubuntu Security Notice
  • Vendor Resources
  • Python Issue Tracker Entry
  • Related CVEs
  • CVE-2025-13836: Python Python DOS Vulnerability

  • CVE-2026-0994: Google Protobuf Python DoS Vulnerability

  • CVE-2025-8194: CPython tarfile Module DoS Vulnerability

  • CVE-2024-8088: CPython zipfile.Path DOS Vulnerability
Default Legacy - Prefooter | 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
  • 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

English