CVE-2004-0940 json
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 execut…
published 2004-10-26 22 y ago modified 2026-06-16 4 mo ago also EUVD-2004-0938
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.8%
- EPSS 4.8% chance of exploitation in 30 days, percentile 92%
- public exploits
- 2
- Exploit-DB
Summary
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.
Patch / fix
- lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce… patch
- lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a… patch
- lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274de… patch
- lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b… patch
- lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e4… patch
- lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f8348… patch
- lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1… patch
- securityfocus.com/bid/11471 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2004-0940 updated
httpd mod_include SSI overflow
-
Red Hat Enterprise Linux ES version 2.1 Red Hat Enterprise Linux WS version 2.1 Red Hat Linux Advanced Workstation 2.1fixed: vendor fix RHSA-2004:600
-
Red Hat Stronghold 4fixed: vendor fix RHSA-2004:653
-
Red Hat Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1)fixed: vendor fix RHSA-2005:816
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-24694)
- Published
Exploit prediction
4.83% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-24694 Apache 1.3.x mod_include - Local Buffer Overflow local, 2004-10-18
- EDB-587 Apache 1.3.31 mod_include - Local Buffer Overflow local, 2004-10-21
- securityfocus.com http://www.securityfocus.com/bid/11471 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-131 Incorrect Calculation of Buffer Size
- Technology feeds
References
-
securityfocus.com
/bid/11471
vdb-entry, broken-link, exploit, patch, third-party-advisory, vendor-advisory
-
lists.apache.org
/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
lists.apache.org
/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org%3E
mailing-list, patch
-
marc.info
/?l=bugtraq&m=109906660225051&w=2
vendor-advisory, mailing-list, third-party-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2004:134
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2005-816.html
vendor-advisory, broken-link
-
debian.org
/security/2004/dsa-594
vendor-advisory, mailing-list, third-party-advisory
-
redhat.com
/support/errata/RHSA-2004-600.html
vendor-advisory, broken-link
-
sunsolve.sun.com
/search/document.do?assetkey=1-26-102197-1
vendor-advisory, broken-link
-
apacheweek.com
/features/security-13
product
-
support.avaya.com
/elmodocs2/security/ASA-2006-081.htm
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/17785
vdb-entry, third-party-advisory
-
secunia.com
/advisories/12898/
third-party-advisory, broken-link
-
secunia.com
/advisories/19073
third-party-advisory, broken-link
-
securitytracker.com
/id?1011783
vdb-entry, broken-link, third-party-advisory
-
vupen.com
/english/advisories/2006/0789
vdb-entry, broken-link
Sources
- CVE List CVE-2004-0940
- NVD CVE-2004-0940
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.