HTTP_PROXY Variable Name Clash Vulnerability in Python 2.7

python2.7 Updated 02 Oct 2025

Summary

27/11/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2016-1000110: The CGIHandler class in Python before 2.7.12 does not protect against the HTTP_PROXY variable name clash in a CGI script, which could allow a remote attacker to redirect HTTP requests. Affects python2.7 versions < 2.7.12-2. Fixed in 2.7.12-2. 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 2.7 is a widely used programming language known for its simplicity and versatility. It supports various programming paradigms and is commonly utilized for web development, data analysis, artificial intelligence, and more. However, prior to version 2.7.12, the CGIHandler class in Python 2.7 had a significant vulnerability that allowed for potential HTTP request redirection due to improper handling of the HTTP_PROXY variable in CGI scripts.

Vulnerability Detail

The vulnerability arises from the CGIHandler class in Python versions before 2.7.12, which fails to adequately protect against conflicts with the HTTP_PROXY environment variable. This oversight can be exploited by a remote attacker, who could manipulate HTTP requests, potentially redirecting them to malicious sites. The implications of this vulnerability are severe, as it could lead to unauthorized access to sensitive data or further exploitation of the affected system.

How To Fix

Minimum fixed version

2.7.12-2

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 avoid using CGI scripts that rely on the HTTP_PROXY variable until the package is updated. Additionally, configuring the web server to restrict access to CGI scripts may help mitigate the risk.

Conclusion

The HTTP_PROXY variable name clash vulnerability in Python 2.7 poses a significant risk, allowing remote attackers to redirect HTTP requests. It is crucial for users to update to the patched version to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

The vulnerability allows remote attackers to redirect HTTP requests due to a clash with the HTTP_PROXY variable in CGI scripts.

Python versions prior to 2.7.12 are affected by this vulnerability.

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

Exploitation of this vulnerability could lead to unauthorized access to sensitive data and further compromise of the affected system.

Yes, updating to Python version 2.7.12-2 or later is the permanent fix for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.12-2

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