Heap-based Buffer Overflow in Apache HTTP Server (mod_xml2enc) - CVE-2026-42536

apache2 Updated 07 Jul 2026

Summary

08/06/2026
N/A
Yes i
High
7.5

ALPINE-CVE-2026-42536: Heap-based Buffer Overflow vulnerability in Apache HTTP Server with mod_xml2enc, xml2StartParse, and untrusted content This issue affects Apache HTTP Server: from 2.4.0 through 2.4.67. Affects apache2 versions < 2.4.68-r0. Fixed in 2.4.68-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 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 web applications. It is known for its flexibility, power, and extensive feature set, including support for various modules that enhance its functionality. The vulnerability in question affects versions 2.4.0 through 2.4.67 of the Apache HTTP Server, specifically related to the mod_xml2enc module, which handles XML encoding and decoding. This vulnerability can lead to severe security risks if exploited.

Vulnerability Detail

The vulnerability identified as CVE-2026-42536 is a heap-based buffer overflow that occurs in the Apache HTTP Server when processing untrusted content with the mod_xml2enc module. This flaw can be exploited by attackers to execute arbitrary code, potentially leading to a complete system compromise. The issue arises from improper handling of XML parsing, which can allow attackers to manipulate memory allocation and execution flow, resulting in significant security breaches.

How To Fix

Minimum fixed version

2.4.68-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, users can disable the mod_xml2enc module if it is not essential for their application. This can be done by commenting out the relevant LoadModule directive in the Apache configuration file, typically located at /etc/httpd/conf/httpd.conf. For example, you can add a '#' before the line: '#LoadModule xml2enc_module modules/mod_xml2enc.so'.

Conclusion

CVE-2026-42536 represents a significant security risk for users of the Apache HTTP Server versions 2.4.0 through 2.4.67. It is crucial to upgrade to version 2.4.68 or later to mitigate this vulnerability. Users should also consider using tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2026-42536 is a vulnerability in the Apache HTTP Server that allows for a heap-based buffer overflow, potentially leading to arbitrary code execution.

The vulnerability affects Apache HTTP Server versions from 2.4.0 to 2.4.67.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The CVSS score for CVE-2026-42536 is 7.5, indicating a high severity level.

If an immediate upgrade is not possible, consider disabling the mod_xml2enc module as a temporary workaround until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

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