Denial of Service Vulnerability in Python Package: python3.x

python3.4 Updated 03 Oct 2025

Summary

18/06/2020
N/A
Yes i
Medium
5.9

UBUNTU-CVE-2020-14422: Lib/ipaddress.py in Python through 3.8.3 improperly computes hash values in the IPv4Interface and IPv6Interface classes, which might allow a remote attacker to cause a denial of service if an application is affected by t... Affects python3.4 versions < 3.4.3-1ubuntu1~14.04.7+esm7. Fixed in 3.4.3-1ubuntu1~14.04.7+esm7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Python package, specifically versions 3.4, 3.5, 3.6, 3.7, and 3.8, is a widely used programming language that supports multiple programming paradigms, including procedural, object-oriented, and functional programming. It is known for its simplicity and readability, making it a popular choice among developers. However, a vulnerability has been identified in the ipaddress.py module, which can lead to denial of service under certain conditions.

Vulnerability Detail

Lib/ipaddress.py in Python through 3.8.3 improperly computes hash values in the IPv4Interface and IPv6Interface classes. This flaw may allow a remote attacker to exploit applications that utilize these classes, potentially leading to a denial of service by causing excessive dictionary entries to be created, which can degrade performance significantly.

How To Fix

Minimum fixed version

3.4.3-1ubuntu1~14.04.7+esm7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider limiting the exposure of applications that utilize the affected Python versions to untrusted inputs. Additionally, monitoring and rate-limiting incoming requests may help mitigate the impact of potential denial of service attacks.

Conclusion

In summary, a denial of service vulnerability has been identified in the Python package, specifically in the ipaddress.py module. It is crucial to update the affected packages to their patched versions to mitigate the risk. Users should also consider implementing workarounds to protect their applications until updates can be applied.

See every vulnerability recorded for python3.4 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.9, indicating a medium severity level.

The vulnerability affects Python versions 3.4, 3.5, 3.6, 3.7, and 3.8.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to a denial of service, where an attacker can degrade the performance of applications by creating excessive dictionary entries.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for python3.4.

How To Fix

Minimum fixed version

3.4.3-1ubuntu1~14.04.7+esm7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback