Critical Vulnerability in Python Packages: USN-5519-1

python2.7 Updated 03 Oct 2025

Summary

14/07/2022
N/A
Yes i
Unrated
Not published

USN-5519-1: python2.7, python3.10, python3.4, python3.5, python3.6, python3.8, python3.9 vulnerability. Affects python2.7 versions < 2.7.6-8ubuntu0.6+esm11. Fixed in 2.7.6-8ubuntu0.6+esm11. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Python is a widely-used high-level programming language known for its readability and versatility. It supports multiple programming paradigms and is used in various applications, from web development to data analysis. The vulnerability identified in USN-5519-1 affects several versions of Python packages, including python2.7, python3.4, python3.5, python3.6, python3.8, python3.9, and python3.10, posing a significant risk to applications relying on these versions.

Vulnerability Detail

The vulnerability, identified as CVE-2015-20107, arises from Python's improper handling of certain inputs. This flaw can potentially allow an attacker to execute arbitrary code, leading to unauthorized access or control over the affected systems. The issue is rooted in the way Python processes specific data types, which can be exploited if not properly sanitized.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm11

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

As a temporary measure, you can restrict the execution of untrusted code by implementing strict input validation and sanitization in your applications. This can help mitigate the risk of exploitation until the packages are updated.

Conclusion

The vulnerability identified in USN-5519-1 poses a serious risk to applications using affected versions of Python packages. It is crucial to update to the patched versions to mitigate the risk of exploitation. For those unable to update immediately, implementing input validation can serve as a temporary measure.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

CVE-2015-20107 is a vulnerability in Python that allows for arbitrary code execution due to improper input handling.

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

Exploitation of this vulnerability can lead to unauthorized access, data breaches, or complete control over the affected systems.

Yes, patched versions of the affected Python packages are available. Updating to these versions will resolve the vulnerability.

If immediate updates are not possible, implement strict input validation and sanitization as a temporary workaround to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm11

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