{"id":"CVE-2004-0940","aliases":["DEBIAN-CVE-2004-0940","DSA-594-1","EUVD-2004-0938","GHSA-cx2h-jfxr-vw9c"],"status":"published","title":"Buffer overflow in the get_tag function in mod_include for Apache 1.3.x to 1.3.32 allows local...","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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.0483,"percentile":0.92043,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-119","CWE-131"],"published":"2004-10-26T04:00:00Z","modified":"2026-06-16T22:06:42Z","exploits":[{"source":"exploitdb","id":"EDB-24694","title":"Apache 1.3.x mod_include - Local Buffer Overflow","type":"local","platform":"linux","date":"2004-10-18","verified":true,"url":"https://www.exploit-db.com/exploits/24694"},{"source":"exploitdb","id":"EDB-587","title":"Apache 1.3.31 mod_include - Local Buffer Overflow","type":"local","platform":"linux","date":"2004-10-21","verified":true,"url":"https://www.exploit-db.com/exploits/587"}],"fixes":[{"ecosystem":"Debian:3.0","package":"apache","fixed_in":["1.3.26-0woody6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"apache","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.26-0woody6"}]}]}],"products":[{"vendor":"apache","product":"http_server"},{"vendor":"hp","product":"hp-ux"},{"vendor":"openpkg","product":"openpkg"},{"vendor":"slackware","product":"slackware_linux"},{"vendor":"suse","product":"suse_linux"},{"vendor":"trustix","product":"secure_linux"}],"references":[{"url":"http://marc.info/?l=bugtraq\u0026m=109906660225051\u0026w=2","tags":["vendor-advisory","x_refsource_OPENPKG","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://www.apacheweek.com/features/security-13","tags":["x_refsource_CONFIRM","x_transferred","Product"]},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:134","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17785","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/11471","tags":["vdb-entry","x_refsource_BID","x_transferred","Broken Link","Exploit","Patch","Third Party Advisory","VDB Entry","Vendor Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://secunia.com/advisories/12898/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Broken Link"]},{"url":"http://www.debian.org/security/2004/dsa-594","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://secunia.com/advisories/19073","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Broken Link"]},{"url":"http://securitytracker.com/id?1011783","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Broken Link","Third Party Advisory","VDB Entry"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-600.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102197-1","tags":["vendor-advisory","x_refsource_SUNALERT","x_transferred","Broken Link"]},{"url":"http://www.vupen.com/english/advisories/2006/0789","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Broken Link"]},{"url":"https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0940"},{"url":"https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e@%3Ccvs.httpd.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9@%3Ccvs.httpd.apache.org%3E"},{"url":"http://secunia.com/advisories/12898"},{"url":"https://github.com/advisories/GHSA-cx2h-jfxr-vw9c"}],"sources":{"cve":[{"id":"CVE-2004-0940","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.","status":"published","published":"2004-10-26T04:00:00Z","modified":"2024-08-08T00:31:48.244Z","updated_at":"2026-11-02T14:34:54.758165Z"}],"euvd":[{"id":"EUVD-2004-0938","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.","status":"published","published":"2004-10-26T04:00:00Z","modified":"2024-08-08T00:31:48Z","updated_at":"2026-11-03T01:15:17.239417Z"}],"ghsa":[{"id":"GHSA-cx2h-jfxr-vw9c","title":"Buffer overflow in the get_tag function in mod_include for Apache 1.3.x to 1.3.32 allows local...","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.","status":"published","published":"2022-04-29T02:58:39Z","modified":"2025-04-03T04:09:05Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119","CWE-131"],"updated_at":"2026-11-02T15:00:41.179225Z"}],"nvd":[{"id":"CVE-2004-0940","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.","status":"published","published":"2005-02-09T05:00:00Z","modified":"2026-06-16T22:06:42.493Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-131"],"updated_at":"2026-11-02T14:00:53.662124Z"}],"osv":[{"id":"DSA-594-1","title":"apache - buffer overflows","status":"published","published":"2004-11-17T00:00:00Z","modified":"2026-03-09T02:10:32.382798Z","updated_at":"2026-11-02T15:46:18.296714Z"}]}}
