Apache HTTP Server mod_include SSI Buffer Overflow
CVE-2004-0940 is a buffer overflow in the mod_include get_tag function in Apache HTTP Server 1.3.x through 1.3.32. An accidental double increment of a counter causes a length-check condition to fail to terminate the relevant parsing loop, resulting in an incorrect length calculation while processing SSI (XSSI) document content. The resulting out-of-bounds write can be used by a local user able to create SSI documents to execute arbitrary code in the web-server process context.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables arbitrary code execution with the privileges of the Apache HTTP Server service account. Exploitation may also crash or otherwise disrupt the affected web-server process, causing denial of service.
If you can’t patch tonight, do this now.
Disable mod_include where SSI processing is not required. Where it must remain enabled, restrict creation and modification of SSI documents to trusted administrators, prevent untrusted users from supplying SSI content, and monitor for anomalous SSI document activity.
Patch, then assume compromise.
Upgrade affected Apache HTTP Server installations to a release that contains the mod_include fix. For affected F5 BIG-IP and 3-DNS products, upgrade to BIG-IP 4.5.12, 4.6.3, or later.
No validated public exploits yet. Hidden: 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.