HOMEVULNERABILITIESCVE-2004-0940
HIGHPOC

CVE-2004-0940

CWE-131Published: February 9, 2005· Updated: Jun 16, 2026

7.8
CVSS v3.1

Official 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.

NVD Source

Technical Analysis

CVE-2004-0940 requires local access, meaning attackers must already have a foothold on the target system.

Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.

A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 7.8.

A proof-of-concept (PoC) exploit exists for CVE-2004-0940. While not yet confirmed in active campaigns, the availability of PoC code increases exploitation risk substantially.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorLocal
Attack ComplexityLow
Privileges Req.Low
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Vendors & Products

Apache1 product(s)
http server
HP1 product(s)
hp-ux
openpkg1 product(s)
openpkg
slackware1 product(s)
slackware linux
SUSE1 product(s)
suse linux
trustix1 product(s)
secure linux
Source: NVD CPE · 21 total CPE entries

Exploit & PoC Resources

POC AVAILABLEProof-of-concept code exists
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (42)

Quick Facts

CVE IDCVE-2004-0940
CVSS Score7.8 / 10
SeverityHIGH
WeaknessCWE-131
CISA KEVNo
ExploitPOC
Affected6 vendor(s)
PublishedFeb 9, 2005

Related CVEs (CWE-131)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2004-0940 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.