Apache HTTP Server Vulnerability: Excessive Memory Allocation in mod_sed

apache2 Updated 02 Oct 2025

Summary

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

UBUNTU-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 versions < 2.4.7-1ubuntu4.22+esm8. Fixed in 2.4.7-1ubuntu4.22+esm8. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache HTTP Server is a widely used open-source web server software that enables the hosting of websites and applications. It is known for its flexibility, power, and extensive features, including support for various modules that enhance its functionality. However, a vulnerability has been identified in version 2.4.53 related to the mod_sed module, which can lead to excessive memory allocation under certain configurations, potentially causing server crashes.

Vulnerability Detail

The vulnerability, identified as CVE-2022-30522, arises when Apache HTTP Server 2.4.53 is configured to perform transformations using mod_sed in contexts where the input may be very large. This can lead to excessively large memory allocations, ultimately triggering an abort of the server process. The implications of this vulnerability include potential denial of service, where legitimate users may be unable to access the server due to crashes caused by this memory issue.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm8

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

As a temporary workaround, consider disabling mod_sed or limiting the size of inputs processed by it to prevent excessive memory allocation. This can be done by adjusting the server configuration to restrict the contexts in which mod_sed is applied.

Conclusion

The vulnerability CVE-2022-30522 in Apache HTTP Server poses a significant risk due to excessive memory allocation in mod_sed, leading to potential server crashes. Users are advised to update to the latest patched version to ensure their systems remain secure. For those unable to update immediately, temporary workarounds are available to mitigate risks.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2022-30522 is a vulnerability in Apache HTTP Server that allows for excessive memory allocation when using the mod_sed module with large inputs, potentially leading to server crashes.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

The primary consequence is a denial of service, where the server may crash due to excessive memory usage, affecting all users trying to access the service.

Yes, a patched version of Apache HTTP Server is available. Users should update to version 2.4.53 or later to mitigate the vulnerability.

If immediate updating is not possible, consider disabling mod_sed or limiting input sizes to reduce the risk of triggering the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm8

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