Apache2 - Proxy Header Remote Code Execution

apache2 Updated 02 Oct 2025

Summary

20/07/2016
N/A
Yes i
Unrated
Not published

DLA-553-1: apache2 - security update. Affects apache2 versions < 2.2.22-13+deb7u7. Fixed in 2.2.22-13+deb7u7. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache2 is a widely used open-source web server software. It provides a reliable and secure platform for hosting websites and applications. The Proxy header vulnerability in Apache2 allows an attacker to manipulate the HTTP_PROXY environment variable used by CGI scripts, potentially redirecting outgoing HTTP requests to an attacker-controlled proxy.

Vulnerability Detail

The Apache2 web server uses the value of the Proxy header from HTTP requests to initialize the HTTP_PROXY environment variable for CGI scripts. This variable is then used by certain HTTP client implementations to configure the proxy for outgoing HTTP requests. By sending a malicious HTTP request with a manipulated Proxy header, a remote attacker can redirect the HTTP requests performed by a CGI script to an attacker-controlled proxy. This can lead to various security risks, including unauthorized access to sensitive information or the manipulation of outgoing requests.

How To Fix

Minimum fixed version

2.2.22-13+deb7u7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading the apache2 package is not immediately possible, a temporary workaround is to disable the use of the Proxy header in the Apache2 server configuration. This can be done by modifying the Apache configuration file (usually located at /etc/apache2/apache2.conf or /etc/httpd/conf/httpd.conf) and adding the following line:

<IfModule mod_headers.c>

RequestHeader unset Proxy

</IfModule>

After making this change, restart the Apache2 server for the configuration to take effect. This workaround prevents the Proxy header from being used to initialize the HTTP_PROXY environment variable, mitigating the vulnerability.

Conclusion

The Proxy header vulnerability in Apache2 can be mitigated by upgrading to version 2.2.22-13+deb7u7 or later. If immediate upgrading is not possible, a temporary workaround is available by disabling the use of the Proxy header in the Apache2 server configuration. It is important to take action to protect your system from potential attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

This vulnerability allows a remote attacker to redirect HTTP requests performed by a CGI script to an attacker-controlled proxy. This can potentially lead to unauthorized access to sensitive information or the manipulation of outgoing requests.

The vulnerability affects Apache2 version 2.2.22-13+deb7u7 and earlier versions.

At the time of this advisory, there is no known public exploit for this vulnerability. However, it is important to apply the recommended security update or workaround to mitigate the risk.

Yes, a temporary workaround is to disable the use of the Proxy header in the Apache2 server configuration. This prevents the Proxy header from being used to initialize the HTTP_PROXY environment variable and mitigates the vulnerability.

You can find more information about this vulnerability in the Debian LTS security advisory DLA-553-1. The advisory provides details about the vulnerability, its impact, and the recommended steps to fix it.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.2.22-13+deb7u7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

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