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.
Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
4.830%
chance of exploitation in the next 30 days
higher than 92.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-131: Incorrect Calculation of Buffer Size
Timeline
- 2004-10-18First Exploit-DB entry (EDB-ID 24694)8 days before publication
- 2004-10-26Published by the CNA04:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 587 | local | linux | 2004-10-21 | yes |
| EDB-ID 24694 | local | linux | 2004-10-18 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache http_server | from 1.3 through 1.3.32no fix listed | not listed |
| hp hp-ux | 11.00no fix listed11.11no fix listed11.20no fix listed11.22no fix listed | not listednot listednot listednot listed |
| openpkg openpkg | 2.0no fix listed2.1no fix listed2.2no fix listed | not listednot listednot listed |
| slackware slackware_linux | 10.0no fix listed8.0no fix listed8.1no fix listed9.0no fix listed9.1no fix listed | not listednot listednot listednot listednot listed |
| suse suse_linux | 8.0no fix listed8.1no fix listed8.2no fix listed9.0no fix listed9.1no fix listed(+1 more) | not listednot listednot listednot listednot listed |
| trustix secure_linux | 1.5no fix listed | not listed |
References
- http://www.securityfocus.com/bid/11471
- https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E
- http://marc.info/?l=bugtraq&m=109906660225051&w=2
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-102197-1
- http://www.debian.org/security/2004/dsa-594
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:134
- http://www.redhat.com/support/errata/RHSA-2004-600.html
- http://www.redhat.com/support/errata/RHSA-2005-816.html
- http://secunia.com/advisories/12898/
- http://secunia.com/advisories/19073
- http://securitytracker.com/id?1011783
- http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm
- http://www.apacheweek.com/features/security-13
- http://www.vupen.com/english/advisories/2006/0789
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2004-0940'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2004-0940'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2004-0940'curl 'https://api.contrastcyber.com/cve_products/CVE-2004-0940'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).