Security Update for python2.7

python2.7 Updated 02 Oct 2025

Summary

24/05/2023
N/A
Yes i
Unrated
Not published

DLA-3432-1: python2.7 - security update. Affects python2.7 versions < 2.7.16-2+deb10u2. Fixed in 2.7.16-2+deb10u2. 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 an interactive high-level object-oriented language widely used for various applications. The python2.7 package is specifically targeted by this security update. It is a version of Python that is vulnerable to multiple security issues, including command injection, denial of service (DoS), request smuggling, and port scanning.

Vulnerability Detail

The python2.7 package is affected by several vulnerabilities:

  1. CVE-2015-20107: The mailcap module does not properly handle escape characters in commands found in the system mailcap file, allowing for command injection attacks.

  2. CVE-2019-20907: A flaw in the Lib/tarfile.py module allows an attacker to create a specially crafted TAR archive that triggers an infinite loop when opened, leading to a denial of service (DoS) condition.

  3. CVE-2020-8492: Python's urllib.request.AbstractBasicAuthHandler is susceptible to regular expression denial of service (ReDoS) attacks, allowing an HTTP server to consume excessive resources on the client-side.

  4. CVE-2020-26116: The http.client module allows for CRLF injection if the attacker controls the HTTP request method, potentially leading to HTTP response splitting attacks.

  5. CVE-2021-3177: A buffer overflow vulnerability in PyCArg_repr in _ctypes/callproc.c could be exploited by an attacker to execute arbitrary code in certain Python applications that accept untrusted floating-point numbers as input.

  6. CVE-2021-3733: The urllib AbstractBasicAuthHandler class is vulnerable to regular expression denial of service (ReDoS) attacks, which can be triggered by a malicious HTTP server during an authentication request.

  7. CVE-2021-3737: Improper handling of an HTTP response in the Python HTTP client code can result in an infinite loop, consuming excessive CPU time, if triggered by a remote attacker controlling the HTTP server.

  8. CVE-2021-4189: The FTP client library in python2.7's PASV (passive) mode trusts the host from the PASV response by default, enabling an attacker to set up a malicious FTP server and potentially perform port scanning on FTP clients.

  9. CVE-2022-45061: An unnecessary quadratic algorithm in the IDNA decoder of python2.7 could lead to a CPU denial of service if presented with a crafted, unreasonably long name.

These vulnerabilities pose various risks, including remote code execution, denial of service, command injection, and potential information disclosure.

How To Fix

Minimum fixed version

2.7.16-2+deb10u2

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

There are no specific workarounds mentioned for these vulnerabilities.

Conclusion

In conclusion, the python2.7 package is affected by multiple security vulnerabilities that can lead to various risks, including remote code execution, denial of service, command injection, and potential information disclosure. It is crucial to upgrade to version 2.7.16-2+deb10u2 or later to mitigate these vulnerabilities. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

The impact of these vulnerabilities can range from remote code execution and denial of service to command injection and potential information disclosure.

While specific exploits for these vulnerabilities have not been mentioned, it is important to apply the security update to mitigate the risks.

Yes, these vulnerabilities can be exploited remotely by attackers who have control over the targeted systems or can manipulate network traffic.

There is no specific mention of active exploitation in the provided vulnerability details. However, it is always recommended to apply security updates promptly.

For more detailed information about these vulnerabilities, including their CVE identifiers, you can refer to the provided links in the vulnerability details section.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.16-2+deb10u2

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