Critical Vulnerability in Python Packages: CVE-2019-10160

python2.7 Updated 03 Oct 2025

Summary

07/06/2019
N/A
Yes i
Critical
9.8

UBUNTU-CVE-2019-10160: A security regression of CVE-2019-9636 was discovered in python since commit d537ab0ff9767ef024f26246899728f0116b1ec3 affecting versions 2.7, 3.5, 3.6, 3.7 and from v3.8.0a4 through v3.8.0b1, which still allows an attack... Affects python2.7 versions < 2.7.6-8ubuntu0.6+esm2. Fixed in 2.7.6-8ubuntu0.6+esm2. 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

Python is a widely-used high-level programming language known for its readability and versatility. It supports multiple programming paradigms and is utilized in various applications, from web development to data analysis. The affected packages, including python2.7, python3.4, python3.5, and others, are integral to many Ubuntu systems, providing essential functionalities for running Python applications. This vulnerability exposes these packages to potential security risks, particularly in how they handle user-supplied URLs.

Vulnerability Detail

A security regression was discovered in Python that affects versions 2.7, 3.5, 3.6, 3.7, and from v3.8.0a4 through v3.8.0b1. The vulnerability allows attackers to exploit the user and password parts of a URL, enabling them to craft malicious URLs that could lead to unauthorized access to sensitive information such as cookies and authentication data. This could result in data leakage or unauthorized actions within applications that improperly parse these URLs.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.7

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 implementing input validation to sanitize user-supplied URLs before processing them. This can help mitigate the risk of exploitation until the packages can be updated.

Conclusion

CVE-2019-10160 represents a significant security risk for applications using affected Python packages. It is essential to apply the necessary updates to mitigate this vulnerability and ensure the security of your applications. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain a secure software environment.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

CVE-2019-10160 is a critical vulnerability in Python packages that allows attackers to exploit user-supplied URLs, potentially leading to unauthorized access to sensitive information.

The vulnerability affects Python versions 2.7, 3.5, 3.6, 3.7, and specific pre-release versions of 3.8.

Exploitation of this vulnerability can lead to data leakage, unauthorized access to cookies and authentication data, and potentially compromise the security of applications.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.

The CVSS score for CVE-2019-10160 is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.7

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