Apache HTTP Server 2.4.53 - Excessive Memory Allocation Vulnerability

apache2 Updated 02 Oct 2025

Summary

09/06/2022
N/A
Yes i
High
7.5

CVE-2022-30522: If Apache HTTP Server 2.4.53 is configured to do transformations with mod_sed in contexts where the input to mod_sed may be very large, mod_sed may make excessively large memory allocations and trigger an abort. Affects apache2 across 2 version ranges.

< 2.4.54-r0 < 4654faee107e0c3a830c204a1dc94700705e8e86

Fixed in 2.4.54-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 is a widely used open-source web server software. It provides a reliable and efficient platform for hosting websites and applications. The mod_sed module in Apache HTTP Server allows for transformations on incoming requests, which can be useful for various purposes such as rewriting URLs or modifying content. However, in certain contexts where the input to mod_sed is very large, a vulnerability exists that can lead to excessive memory allocations and trigger an abort in the server.

Vulnerability Detail

The vulnerability (CVE-2022-30522) in Apache HTTP Server 2.4.53 arises when mod_sed is configured to perform transformations on large inputs. This can result in the server making excessively large memory allocations, potentially leading to resource exhaustion and a denial-of-service condition. An attacker could exploit this vulnerability by sending specially crafted requests that trigger the mod_sed transformation in a vulnerable configuration. Successful exploitation could cause the server to crash or become unresponsive, impacting the availability of the web service.

How To Fix

Minimum fixed version

2.4.54-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

If upgrading Apache HTTP Server is not immediately feasible, a possible workaround is to disable or limit the usage of mod_sed in the server configuration. By removing or restricting the mod_sed module, the vulnerability can be mitigated. However, this workaround may impact any functionality or transformations relying on mod_sed, so it is recommended to thoroughly test the server behavior after applying this workaround.

Conclusion

The Apache HTTP Server 2.4.53 excessive memory allocation vulnerability in mod_sed can be mitigated by upgrading to version 2.4.54-r0 or later. Alternatively, users can apply a workaround by disabling or limiting the usage of mod_sed. It is important to promptly address this vulnerability to ensure the stability and availability of the web server. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

Apache HTTP Server is an open-source web server software widely used for hosting websites and applications.

mod_sed is a module in Apache HTTP Server that allows for transformations on incoming requests, such as URL rewriting or content modification.

The vulnerability can lead to excessive memory allocations and resource exhaustion, potentially causing the server to crash or become unresponsive.

Upgrade Apache HTTP Server to version 2.4.54-r0 or later, which includes a fix for the excessive memory allocation issue in mod_sed.

A possible workaround is to disable or limit the usage of mod_sed in the server configuration, but this may impact functionality relying on mod_sed.

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.54-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