high CVSS 7.5

CVE-2026-42536·Apache vulnerability

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. Users are recommended to upgrade to version 2.4.68, which fixes the issue.

Severity
high
Software
Apache
Fixed in
2.4.68
Published

Affected versions

From: 2.4.0

Until: 2.4.68

Fixed in: 2.4.68

How to fix this CVE

Apache HTTP Server versions 2.4.0 through 2.4.67 contain a heap buffer overflow in the mod_xml2enc module that can be triggered when processing untrusted XML content, leading to denial of service. Immediately upgrade to Apache 2.4.68 or later to eliminate this memory corruption vulnerability. Ensure all systems running Apache with mod_xml2enc enabled are patched without delay.

sudo dnf update httpd

Defensia detects this vulnerability

How to check if you are affected

  1. Run 'apache2ctl -v' or 'httpd -v' to confirm the installed Apache version; vulnerable versions are 2.4.0 through 2.4.67
  2. Check if mod_xml2enc is loaded by running 'apache2ctl -M | grep xml2enc' or inspect 'mods-enabled/xml2enc.load' in /etc/apache2/
  3. Search Apache error logs for segmentation faults or memory-related errors using 'grep -i "segfault\|heap\|buffer" /var/log/apache2/error.log*'
  4. Verify the patch by confirming Apache version is 2.4.68 or higher with 'apache2ctl -v' and reload the service with 'sudo systemctl reload apache2'

FAQ

What is CVE-2026-42536?

CVE-2026-42536 is a heap-based buffer overflow flaw in Apache HTTP Server's mod_xml2enc module that occurs during XML parsing of untrusted input, potentially causing a denial of service condition.

Is CVE-2026-42536 being actively exploited?

No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available.

What versions of Apache are affected by CVE-2026-42536?

Apache HTTP Server versions 2.4.0 through 2.4.67 are vulnerable; version 2.4.68 and later contain the fix.

How do I check if my server is vulnerable to CVE-2026-42536?

Run 'apache2ctl -v' to display your version, then verify mod_xml2enc is enabled with 'apache2ctl -M | grep xml2enc'. If the version is between 2.4.0-2.4.67 and mod_xml2enc is loaded, your server is vulnerable.

Does Defensia detect CVE-2026-42536?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Apache is installed on a monitored server, CVE-2026-42536 will appear in your dashboard with remediation steps.

Related Apache CVEs

CVE-2021-42013CVSS 10It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.
CVE-2026-29167CVSS 10Use After Free vulnerability in Apache HTTP Server with mod_ldap in per-directory configuration This issue affects Apache HTTP Server: from 2.4.0 through 2.4.67. Users are recommended to upgrade to version 2.4.68, which fixes the issue.
CVE-2021-41773CVSS 10A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.
CVE-2026-44631CVSS 10Buffer Underwrite vulnerability in Apache HTTP Server on crafted regular expressions in the configuration. This issue affects Apache HTTP Server: from 2.4.0 through 2.4.67. Users are recommended to upgrade to version 2.4.68, which fixes the issue.
CVE-2021-44790CVSS 10A carefully crafted request body can cause a buffer overflow in the mod_lua multipart parser (r:parsebody() called from Lua scripts). The Apache httpd team is not aware of an exploit for the vulnerabilty though it might be possible to craft one. This issue affects Apache HTTP Server 2.4.51 and earlier.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-42536. Free for 1 server.

Get started free