CVE-2004-0940

Exp

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.

Published: 2005-02-09 Last update: 2026-04-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2004-0940 is rated High Exploit Risk (79.1/100): CVSS High severity, with high exploitation likelihood (EPSS 4.83%, 91th percentile). Core evidence: 3 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.15% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2004-0940

EDB-ID Source Kind Published Link
587 exploit_db edb 2004-10-21 Exploit-DB ↗
24694 exploit_db edb 2004-10-18 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2004-0940

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 3.68% 4.83% +1.15%
2 2025-12-28 5.05% 3.68% -1.37%
3 2025-12-27 5.05%

Full EPSS history (15 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2004-0940

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
6.9 2.0 MEDIUM
AV:L/AC:M/Au:N/C:C/I:C/A:C Click to expand
Access vector (AV:L)
Requires local access to the target system.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
3.4 10.0 [email protected]

Weakness enumeration for CVE-2004-0940

OS Trackers for CVE-2004-0940

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2004-0940
ubuntu medium CVE-2004-0940 medium priority: Ubuntu including 1 source packages (apache), 4 status rows across 4 suites (dapper, edgy, feisty, upstream): released 3, needs-triage 1. https://ubuntu.com/security/CVE-2004-0940

Vendor comments (NVD) for CVE-2004-0940

  • Apache (2008-07-02T00:00:00)

    Fixed in Apache HTTP Server 1.3.33: http://httpd.apache.org/security/vulnerabilities_13.html

Affected software / configurations for CVE-2004-0940

Vendor Product Version Raw CPE
apache http_server >= 1.3, <= 1.3.32 cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*
openpkg openpkg 2.0 cpe:2.3:a:openpkg:openpkg:2.0:*:*:*:*:*:*:*
openpkg openpkg 2.1 cpe:2.3:a:openpkg:openpkg:2.1:*:*:*:*:*:*:*
openpkg openpkg 2.2 cpe:2.3:a:openpkg:openpkg:2.2:*:*:*:*:*:*:*
hp hp-ux 11.00 cpe:2.3:o:hp:hp-ux:11.00:*:*:*:*:*:*:*
hp hp-ux 11.11 cpe:2.3:o:hp:hp-ux:11.11:*:*:*:*:*:*:*
hp hp-ux 11.20 cpe:2.3:o:hp:hp-ux:11.20:*:*:*:*:*:*:*
hp hp-ux 11.22 cpe:2.3:o:hp:hp-ux:11.22:*:*:*:*:*:*:*
slackware slackware_linux 8.0 cpe:2.3:o:slackware:slackware_linux:8.0:*:*:*:*:*:*:*
slackware slackware_linux 8.1 cpe:2.3:o:slackware:slackware_linux:8.1:*:*:*:*:*:*:*
slackware slackware_linux 9.0 cpe:2.3:o:slackware:slackware_linux:9.0:*:*:*:*:*:*:*
slackware slackware_linux 9.1 cpe:2.3:o:slackware:slackware_linux:9.1:*:*:*:*:*:*:*
slackware slackware_linux 10.0 cpe:2.3:o:slackware:slackware_linux:10.0:*:*:*:*:*:*:*
slackware slackware_linux current cpe:2.3:o:slackware:slackware_linux:current:*:*:*:*:*:*:*
suse suse_linux 8.0 cpe:2.3:o:suse:suse_linux:8.0:*:*:*:*:*:*:*
suse suse_linux 8.1 cpe:2.3:o:suse:suse_linux:8.1:*:*:*:*:*:*:*
suse suse_linux 8.2 cpe:2.3:o:suse:suse_linux:8.2:*:*:*:*:*:*:*
suse suse_linux 9.0 cpe:2.3:o:suse:suse_linux:9.0:*:*:*:*:*:*:*
suse suse_linux 9.1 cpe:2.3:o:suse:suse_linux:9.1:*:*:*:*:*:*:*
suse suse_linux 9.2 cpe:2.3:o:suse:suse_linux:9.2:*:*:*:*:*:*:*
trustix secure_linux 1.5 cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:*

References for CVE-2004-0940

URL Tags
http://marc.info/?l=bugtraq&m=109906660225051&w=2 Mailing List Third Party Advisory
http://secunia.com/advisories/12898/ Broken Link
http://secunia.com/advisories/19073 Broken Link
http://securitytracker.com/id?1011783 Broken Link Third Party Advisory VDB 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 List Third 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 Link Exploit Patch Third Party Advisory VDB Entry Vendor Advisory
http://www.vupen.com/english/advisories/2006/0789 Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/17785 Third Party Advisory VDB Entry
https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E Mailing List Patch
cvelogic Threat Intelligence