Critical Vulnerability in Python2.7: CVE-2021-3177 Reinstated in Ubuntu 14.04 ESM

python2.7 Updated 03 Oct 2025

Summary

08/02/2022
N/A
Yes i
Unrated
Not published

USN-4754-5: python2.7 vulnerability. Affects python2.7 versions < 2.7.6-8ubuntu0.6+esm10. Fixed in 2.7.6-8ubuntu0.6+esm10. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Python2.7 is a widely used programming language known for its simplicity and readability. It is utilized in various applications, from web development to data analysis. The package in question, python2.7, is the implementation of the Python programming language for Ubuntu 14.04 LTS. This version has been under Extended Security Maintenance (ESM), which provides critical security updates for legacy systems. The vulnerability in this package can lead to severe security risks if not addressed promptly.

Vulnerability Detail

The vulnerability, identified as CVE-2021-3177, was discovered due to improper handling of certain inputs by Python. This flaw could allow an attacker to execute arbitrary code or cause a denial of service, posing significant risks to systems utilizing this version of Python. The issue was initially fixed in a prior update, but a regression led to the removal of this fix, necessitating a reinstatement in the latest update.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm10

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 workaround, users can limit the exposure of their systems by restricting access to the Python interpreter or by using alternative programming environments until the update is applied.

Conclusion

The reinstatement of the security fix for CVE-2021-3177 in Python2.7 is crucial for maintaining the integrity and security of systems running Ubuntu 14.04 ESM. Users are strongly encouraged to update their packages promptly to mitigate potential risks associated with this vulnerability.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

CVE-2021-3177 is a security vulnerability in Python2.7 that allows for arbitrary code execution or denial of service 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.

Failing to address this vulnerability can lead to unauthorized access, data breaches, and potential system compromise.

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

If an immediate update is not possible, consider implementing access controls to limit exposure and monitor for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm10

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