Critical Vulnerability in Apache2: Server Side Request Forgery and Crash Risk

apache2 Updated 02 Oct 2025

Summary

20/12/2021
N/A
Yes i
High
8.2

ALPINE-CVE-2021-44224: A crafted URI sent to httpd configured as a forward proxy (ProxyRequests on) can cause a crash (NULL pointer dereference) or, for configurations mixing forward and reverse proxy declarations, can allow for requests to be... Affects apache2 versions < 2.4.52-r0. Fixed in 2.4.52-r0. 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

Apache HTTP Server, commonly referred to as Apache2, is a widely used open-source web server software that enables the hosting of websites and web applications. It is known for its flexibility, power, and extensive feature set, including support for various protocols and modules. However, certain configurations, particularly those involving forward proxy settings, can expose the server to vulnerabilities, such as the one identified in CVE-2021-44224.

Vulnerability Detail

A crafted URI sent to httpd configured as a forward proxy (ProxyRequests on) can cause a crash due to a NULL pointer dereference. Additionally, in configurations that mix forward and reverse proxy declarations, this vulnerability can lead to Server Side Request Forgery (SSRF), allowing unauthorized requests to be directed to a declared Unix Domain Socket endpoint. This issue affects Apache HTTP Server versions 2.4.7 through 2.4.51, posing significant security risks to affected systems.

How To Fix

Minimum fixed version

2.4.52-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

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

Workaround

As a temporary workaround, you can disable the ProxyRequests directive in your Apache configuration to prevent the exploitation of this vulnerability. This can be done by adding the following line to your Apache configuration file: 'ProxyRequests Off'. Restart the Apache service after making this change.

Conclusion

CVE-2021-44224 represents a significant security vulnerability in Apache HTTP Server that can lead to crashes and unauthorized access. It is crucial for users of affected versions to update to the patched version or implement workarounds to protect their systems.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2021-44224 is a vulnerability in Apache HTTP Server that can lead to a crash or Server Side Request Forgery when configured as a forward proxy.

The vulnerability affects Apache HTTP Server versions 2.4.7 to 2.4.51.

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

The CVSS score of CVE-2021-44224 is 8.2, indicating a high severity level.

If an immediate update is not possible, consider disabling the ProxyRequests directive as a temporary workaround to mitigate the risk.

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.4.52-r0

This is the first release that contains the fix.

sudo apk add --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