Critical Integer Overflow Vulnerability in Apache2 Package

apache2 Updated 02 Oct 2025

Summary

14/03/2022
N/A
Yes i
Critical
9.1

UBUNTU-CVE-2022-22721: If LimitXMLRequestBody is set to allow request bodies larger than 350MB (defaults to 1M) on 32 bit systems an integer overflow happens which later causes out of bounds writes. Affects apache2 versions < 2.4.7-1ubuntu4.22+esm4. Fixed in 2.4.7-1ubuntu4.22+esm4. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

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, performance, and extensive feature set, including support for various protocols and modules. However, it is susceptible to vulnerabilities that can compromise the security of hosted applications, such as the integer overflow issue identified in this report.

Vulnerability Detail

The vulnerability arises from the LimitXMLRequestBody directive, which, when configured to allow request bodies larger than 350MB on 32-bit systems, leads to an integer overflow. This overflow can result in out-of-bounds writes, potentially allowing an attacker to execute arbitrary code or crash the server. The issue affects Apache HTTP Server versions 2.4.52 and earlier, posing a significant risk to systems that process large XML requests.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm4

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 limiting the size of request bodies by configuring the LimitXMLRequestBody directive to a value lower than 350MB. This can be done by adding the following line to your Apache configuration file: 'LimitXMLRequestBody 1048576' (which sets the limit to 1MB).

Conclusion

The integer overflow vulnerability in the Apache2 package poses a critical risk to systems that handle large XML request bodies. It is crucial for users to update to the patched version to ensure the security and stability of their web applications. Temporary workarounds can be implemented while awaiting the update.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.1, indicating a critical severity level.

Apache2 versions 2.4.52 and earlier are affected by this vulnerability.

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

No subscription is required to access the patched version of Apache2 for Ubuntu users.

Exploiting this vulnerability could allow attackers to execute arbitrary code or crash the server, leading to potential data breaches or service disruptions.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm4

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