Critical Integer Overflow Vulnerability in Apache2 Package
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.