Home / Apache / Http Server / CVE-2004-0940
CVE-2004-0940: is it exploited, and which versions of Apache Http Server are affected and fixed?
CVE-2004-0940 is an incorrect Calculation of Buffer Size vulnerability in Apache Http Server. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: http server from 1.3 through 1.3.32, openpkg 2.0, openpkg 2.1 and 18 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:54 UTC.
What is CVE-2004-0940?
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.
From the CVE record by mitre, last updated August 8, 2024, 00:31 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | http server | from 1.3 through 1.3.32 | application |
| openpkg | openpkg | 2.0 | application |
| openpkg | openpkg | 2.1 | application |
| openpkg | openpkg | 2.2 | application |
| hp | hp-ux | 11.00 | operating system |
| hp | hp-ux | 11.11 | operating system |
| hp | hp-ux | 11.20 | operating system |
| hp | hp-ux | 11.22 | operating system |
| slackware | slackware linux | 8.0 | operating system |
| slackware | slackware linux | 8.1 | operating system |
| slackware | slackware linux | 9.0 | operating system |
| slackware | slackware linux | 9.1 | operating system |
| slackware | slackware linux | 10.0 | operating system |
| slackware | slackware linux | current | operating system |
| suse | suse linux | 8.0 | operating system |
| suse | suse linux | 8.1 | operating system |
| suse | suse linux | 8.2 | operating system |
| suse | suse linux | 9.0 | operating system |
| suse | suse linux | 9.1 | operating system |
| suse | suse linux | 9.2 | operating system |
| trustix | secure linux | 1.5 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 22:06 UTC.
How severe is CVE-2004-0940?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2004-0940 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.83% probability of exploitation activity in the next 30 days, percentile 92.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-131 Incorrect Calculation of Buffer Size
Where are the vendor advisories and references?
- OpenPKG-SA-2004.047 vendor-advisory, x_refsource_OPENPKG
- http://www.apacheweek.com/features/security-13 x_refsource_CONFIRM
- http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm x_refsource_CONFIRM
- MDKSA-2004:134 vendor-advisory, x_refsource_MANDRAKE
- apache-modinclude-bo(17785) vdb-entry, x_refsource_XF
- 11471 vdb-entry, x_refsource_BID
- RHSA-2005:816 vendor-advisory, x_refsource_REDHAT
- 12898 third-party-advisory, x_refsource_SECUNIA
- DSA-594 vendor-advisory, x_refsource_DEBIAN
- 19073 third-party-advisory, x_refsource_SECUNIA
- 1011783 vdb-entry, x_refsource_SECTRACK
- RHSA-2004:600 vendor-advisory, x_refsource_REDHAT
- 102197 vendor-advisory, x_refsource_SUNALERT
- ADV-2006-0789 vdb-entry, x_refsource_VUPEN
- [httpd-cvs] 20210330 svn commit: r1073139 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/json/ mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210330 svn commit: r1073139 [3/13] - in /websites/staging/httpd/trunk/content: ./ security/json/ mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210330 svn commit: r1073140 [1/4] - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities_13.html securi mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210330 svn commit: r1888194 [3/13] - /httpd/site/trunk/content/security/json/ mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210330 svn commit: r1073149 [4/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/ mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210330 svn commit: r1073149 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/ mailing-list, x_refsource_MLIST
- [httpd-cvs] 20210606 svn commit: r1075470 [1/4] - in /websites/staging/httpd/trunk/content: ./ security/json/CVE-2020-13938.json security/vulnerabilities_13.htm mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- October 12, 2004
- Published
- October 26, 2004, 04:00 UTC
- CVE record updated
- August 8, 2024, 00:31 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:06 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:54 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Http Server?
- Aug 13, 2019CVE-2019-9517 Apple Swiftnio: denial of service (uncontrolled resource consumption)
- Jul 19, 2016CVE-2016-5387 Apache Http Server: n/a
- Jul 6, 2016CVE-2016-4979 Apache Http Server: improper access control
- Jul 6, 2016CVE-2016-1546 Apache Http Server: n/a
- Jul 20, 2015CVE-2015-3185 Canonical Ubuntu Linux: n/a
- Jul 20, 2015CVE-2015-3183 Apache Http Server: improper input validation
- Jul 20, 2015CVE-2015-0253 Apache Http Server: n/a
- Mar 8, 2015CVE-2015-0228 Apache Http Server: improper input validation
Questions about CVE-2004-0940
Is CVE-2004-0940 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 4.83% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache Http Server are affected by CVE-2004-0940?
http server from 1.3 through 1.3.32, openpkg 2.0, openpkg 2.1, openpkg 2.2, hp-ux 11.00, hp-ux 11.11 and 15 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2004-0940?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2004-0940?
High (7.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2004-0940?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.