Critical Buffer Overflow Vulnerability in Apache2 Package - CVE-2021-44790

apache2 Updated 02 Oct 2025

Summary

20/12/2021
N/A
Yes i
Critical
9.8

ALPINE-CVE-2021-44790: A carefully crafted request body can cause a buffer overflow in the mod_lua multipart parser (r:parsebody() called from Lua scripts). 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 programming languages and modules. However, certain versions of Apache2 are vulnerable to a buffer overflow issue in the mod_lua multipart parser, which can lead to severe security risks if exploited.

Vulnerability Detail

The vulnerability identified as CVE-2021-44790 arises from a flaw in the mod_lua module of Apache HTTP Server, specifically in the multipart parser used when handling requests. A carefully crafted request body can trigger a buffer overflow, potentially allowing an attacker to execute arbitrary code or crash the server. This vulnerability affects Apache HTTP Server versions 2.4.51 and earlier, and while no known exploits have been reported, the possibility of crafting one exists, making it a critical concern for server administrators.

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, consider disabling the mod_lua module if it is not essential for your application. This can be done by commenting out or removing the relevant LoadModule directive in the Apache configuration file.

Conclusion

The CVE-2021-44790 vulnerability poses a significant risk to Apache HTTP Server installations running versions 2.4.51 and earlier. It is crucial for administrators to update to the patched version 2.4.52-r0 or later to mitigate this risk. Additionally, utilizing tools like Vulert can enhance your security posture by providing real-time vulnerability monitoring.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2021-44790 is a critical buffer overflow vulnerability in the mod_lua multipart parser of Apache HTTP Server, affecting versions 2.4.51 and earlier.

You can check your Apache version using the command 'apache2 -v' and compare it against the affected versions listed in the vulnerability details.

If exploited, this vulnerability could allow attackers to execute arbitrary code, potentially leading to server compromise or denial of service.

As of now, the Apache HTTP Server team is not aware of any active exploits for this vulnerability, but it remains a serious risk.

Vulert provides real-time monitoring and alerts for open-source vulnerabilities using just a manifest file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

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