CVE-2004-0940
CWE-131Published: February 9, 2005· Updated: Jun 16, 2026
Official Description
Buffer overflow in the get_tag function in mod_include for Apache 1.3.x to 1.3.32 allows local users who can create SSI documents to execute arbitrary code as the apache user via SSI (XSSI) documents that trigger a length calculation error.
Technical Analysis
CVE-2004-0940 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 7.8.
A proof-of-concept (PoC) exploit exists for CVE-2004-0940. While not yet confirmed in active campaigns, the availability of PoC code increases exploitation risk substantially.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (42)
Quick Facts
Related CVEs (CWE-131)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2004-0940 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts