CVE-2026-73857

Description

A flaw was found in ModSecurity. When XML request body argument parsing is enabled, processing certain XML elements leaves an internal pointer uninitialized. A remote, unauthenticated attacker can exploit this flaw by sending a specially crafted HTTP request containing an XML payload. This causes memory corruption, leading to a Denial of Service (DoS) by crashing worker processes, and may potentially allow information disclosure or arbitrary code execution.

Statement

This vulnerability is rated as an Important severity flaw because an unauthenticated remote attacker can trigger memory corruption and cause a denial of service across web server worker processes without requiring privileges. The vulnerability requires the non-default XML argument parsing feature to be explicitly enabled via the SecParseXmlIntoArgs directive. Typical Red Hat environments deploying ModSecurity 2.x are unaffected, as the problematic parsing routines exist exclusively in select ModSecurity 3 releases.

Mitigation

To mitigate this vulnerability, disable XML request body argument parsing in the ModSecurity configuration:

1. In the active ModSecurity configuration file (for example, `/etc/nginx/modsecurity.conf`), ensure the following directive is set:

SecParseXmlIntoArgs Off
Alternatively, remove or comment out any directives setting `SecParseXmlIntoArgs` to `On` or `OnlyArgs`.

2. Reload the web server to apply the changes:

systemctl reload nginx
(or `systemctl reload httpd` depending on the web server daemon in use).

Caveats: Disabling this setting prevents ModSecurity from populating the ARGS collection from XML request bodies, which may affect custom rules relying on XML argument inspection.

Warning: Reloading or restarting the web server service may momentarily disrupt active client connections.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

If the uninitialized pointer is used in a read operation, it might not point to a valid memory location. An attacker might be able to read sensitive portions of memory.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If the uninitialized pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

If the uninitialized pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible. If the uninitialized pointer is used as a function call, then arbitrary functions could be invoked.

Frequently Asked Questions

Want to get errata notifications? Sign up here.