Skip to content
Fencer Vulns
high 7.8

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

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.1
    fixed: vendor fix RHSA-2004:600
  • Red Hat Stronghold 4
    fixed: 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

  1. First public exploit (EDB-24694)
  2. 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

Sources

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.