Security Update for python2.7

python2.7 Updated 02 Oct 2025

Summary

21/06/2016
N/A
Yes i
Unrated
Not published

DLA-522-1: python2.7 - security update. Affects python2.7 versions < 2.7.3-6+deb7u3. Fixed in 2.7.3-6+deb7u3. 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

Python 2.7 is an open-source programming language widely used for various applications. It provides a comprehensive standard library and supports multiple programming paradigms. However, the python2.7 package in Debian 7 Wheezy is vulnerable to multiple security issues.

Vulnerability Detail

The python2.7 package in Debian 7 Wheezy is affected by three vulnerabilities:

  1. CVE-2016-0772: This vulnerability allows a Man-in-the-Middle (MITM) attacker to perform a startTLS stripping attack. The smtplib module in python2.7 does not raise an exception when the remote end (SMTP server) fails to respond with 220 (ok) to an explicit call of SMTP.starttls(). This can be exploited by a malicious MITM to perform a startTLS stripping attack.

  2. CVE-2016-5636: This vulnerability can lead to an integer overflow and heap corruption in zipimporter.get_data(). It could potentially be exploited to execute arbitrary code or cause a denial of service.

  3. CVE-2016-5699: This vulnerability allows for protocol injection if an application sets a header based on user-supplied values or tries to fetch a URL specified by an attacker (Server-Side Request Forgery - SSRF case) or accesses a malicious web server (redirection case).

How To Fix

Minimum fixed version

2.7.3-6+deb7u3

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 →

Conclusion

Upgrading the python2.7 package to version 2.7.3-6+deb7u3 or later is crucial to address these vulnerabilities. It is recommended to follow the provided fix instructions and apply the necessary updates. 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 CVE-2016-0772 is that a Man-in-the-Middle attacker can perform a startTLS stripping attack, potentially compromising the confidentiality and integrity of communication between the client and the SMTP server.

CVE-2016-5636 can be exploited by triggering an integer overflow and heap corruption in zipimporter.get_data(). This could lead to arbitrary code execution or denial of service.

CVE-2016-5699 poses a risk of protocol injection, allowing an attacker to manipulate the application's behavior by setting headers or redirecting requests to malicious servers.

No specific workarounds are mentioned in the advisory. It is recommended to upgrade to the fixed version of the python2.7 package.

More information about Debian LTS security advisories, including how to apply updates and frequently asked questions, can be found at: https://wiki.debian.org/LTS

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.3-6+deb7u3

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