← Vulnerability feed

Vulnerability record · CVE-2004-0940 · published 9 February 2005

CVE-2004-0940: Apache http server vulnerability

Apache · Http Server

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.

7.8 CVSS 3.1 High EPSS 4.8% · top 8.3% CWE-131 · CWE-131
7.8CVSS 3.1 base score, v2 6.9
4.8%EPSS exploitation probability, 30 days
NoNot in CISA KEV
6Affected product versions listed by NVD
42References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

6 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://marc.info/?l=bugtraq&m=109906660225051&w=2 Mailing ListThird Party Advisory
http://secunia.com/advisories/12898/ Broken Link
http://secunia.com/advisories/19073 Broken Link
http://securitytracker.com/id?1011783 Broken LinkThird Party AdvisoryVDB Entry
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102197-1 Broken Link
http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm Third Party Advisory
http://www.apacheweek.com/features/security-13 Product
http://www.debian.org/security/2004/dsa-594 Mailing ListThird Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2004:134 Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2004-600.html Broken Link
http://www.redhat.com/support/errata/RHSA-2005-816.html Broken Link
http://www.securityfocus.com/bid/11471 Broken LinkExploitPatchThird Party AdvisoryVDB EntryVendor Advisory
http://www.vupen.com/english/advisories/2006/0789 Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/17785 Third Party AdvisoryVDB Entry
https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org Mailing ListPatch
http://marc.info/?l=bugtraq&m=109906660225051&w=2 Mailing ListThird Party Advisory
http://secunia.com/advisories/12898/ Broken Link
http://secunia.com/advisories/19073 Broken Link
http://securitytracker.com/id?1011783 Broken LinkThird Party AdvisoryVDB Entry
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102197-1 Broken Link
http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm Third Party Advisory
http://www.apacheweek.com/features/security-13 Product
http://www.debian.org/security/2004/dsa-594 Mailing ListThird Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2004:134 Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2004-600.html Broken Link
http://www.redhat.com/support/errata/RHSA-2005-816.html Broken Link
http://www.securityfocus.com/bid/11471 Broken LinkExploitPatchThird Party AdvisoryVDB EntryVendor Advisory
http://www.vupen.com/english/advisories/2006/0789 Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/17785 Third Party AdvisoryVDB Entry
https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org Mailing ListPatch

Track CVE-2004-0940 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed9.1CVE-2024-38475Apache HTTP Server mod_rewrite improper escaping enables code executionApache HTTP Server 2.4.59 and earlier has an improper output escaping flaw in mod_rewrite. Substitutions in server context that use a backreference o…KEVEPSS 100%analysed9.0CVE-2021-40438Apache HTTP Server mod_proxy SSRF via crafted URI pathA crafted request URI path can make mod_proxy forward the request to an origin server chosen by the remote user, an SSRF flaw in Apache HTTP Server 2…KEVEPSS 100%analysed7.8CVE-2019-0211Apache HTTP Server scoreboard use-after-free local privilege escalationApache HTTP Server 2.4.17 through 2.4.38 with MPM event, worker or prefork contains a use-after-free in scoreboard handling. Code running in a less-p…KEVEPSS 65%analysed10.0CVE-2012-0131Hp distributed computing environment vulnerabilityDistributed Computing Environment (DCE) 1.8 and 1.9 on HP HP-UX B.11.11 and B.11.23 allows remote attackers to cause a denial of service or possibly …EPSS 7.4%10.0CVE-2010-0425Apache mod_isapi on Windows remote code execution via orphaned callbacksmod_isapi in Apache HTTP Server on Windows does not ensure request processing is complete before calling isapi_unload for an ISAPI .dll module, leavi…EPSS 94%analysed

Source: NIST National Vulnerability Database (record CVE-2004-0940), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.