Buffer overflow in the get_tag function in mod_include for Apache 1.3.x to 1.3.32 allows…
Priority MEDIUM 42CWE-131Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-131 and the CVSS impact.
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.
Why it matters now
EPSS 0.0483 92nd percentileScored 2026-11-07
Fix Fixed Red Hat: 2 advisories
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 21
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:* | 1.3 – 1.3.32 | Vulnerable | Apache |
| cpe:2.3:a:openpkg:openpkg:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | Openpkg |
| cpe:2.3:a:openpkg:openpkg:2.1:*:*:*:*:*:*:* | 2.1 | Vulnerable | Openpkg |
| cpe:2.3:a:openpkg:openpkg:2.2:*:*:*:*:*:*:* | 2.2 | Vulnerable | Openpkg |
| cpe:2.3:o:hp:hp-ux:11.00:*:*:*:*:*:*:* | 11.00 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:11.11:*:*:*:*:*:*:* | 11.11 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:11.20:*:*:*:*:*:*:* | 11.20 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:11.22:*:*:*:*:*:*:* | 11.22 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:slackware:slackware_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Slackware |
| cpe:2.3:o:slackware:slackware_linux:8.1:*:*:*:*:*:*:* | 8.1 | Vulnerable | Slackware |
- cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:* Versions 1.3 – 1.3.32 Vulnerable ·Apache
- cpe:2.3:a:openpkg:openpkg:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·Openpkg
- cpe:2.3:a:openpkg:openpkg:2.1:*:*:*:*:*:*:* Versions 2.1 Vulnerable ·Openpkg
- cpe:2.3:a:openpkg:openpkg:2.2:*:*:*:*:*:*:* Versions 2.2 Vulnerable ·Openpkg
- cpe:2.3:o:hp:hp-ux:11.00:*:*:*:*:*:*:* Versions 11.00 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:11.11:*:*:*:*:*:*:* Versions 11.11 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:11.20:*:*:*:*:*:*:* Versions 11.20 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:11.22:*:*:*:*:*:*:* Versions 11.22 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:slackware:slackware_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Slackware
- cpe:2.3:o:slackware:slackware_linux:8.1:*:*:*:*:*:*:* Versions 8.1 Vulnerable ·Slackware
Show 11 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:slackware:slackware_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Slackware |
| cpe:2.3:o:slackware:slackware_linux:9.1:*:*:*:*:*:*:* | 9.1 | Vulnerable | Slackware |
| cpe:2.3:o:slackware:slackware_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Slackware |
| cpe:2.3:o:slackware:slackware_linux:current:*:*:*:*:*:*:* | current | Vulnerable | Slackware |
| cpe:2.3:o:suse:suse_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | SUSE |
| cpe:2.3:o:suse:suse_linux:8.1:*:*:*:*:*:*:* | 8.1 | Vulnerable | SUSE |
| cpe:2.3:o:suse:suse_linux:8.2:*:*:*:*:*:*:* | 8.2 | Vulnerable | SUSE |
| cpe:2.3:o:suse:suse_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | SUSE |
| cpe:2.3:o:suse:suse_linux:9.1:*:*:*:*:*:*:* | 9.1 | Vulnerable | SUSE |
| cpe:2.3:o:suse:suse_linux:9.2:*:*:*:*:*:*:* | 9.2 | Vulnerable | SUSE |
| cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:* | 1.5 | Vulnerable | Trustix |
- cpe:2.3:o:slackware:slackware_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Slackware
- cpe:2.3:o:slackware:slackware_linux:9.1:*:*:*:*:*:*:* Versions 9.1 Vulnerable ·Slackware
- cpe:2.3:o:slackware:slackware_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Slackware
- cpe:2.3:o:slackware:slackware_linux:current:*:*:*:*:*:*:* Versions current Vulnerable ·Slackware
- cpe:2.3:o:suse:suse_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·SUSE
- cpe:2.3:o:suse:suse_linux:8.1:*:*:*:*:*:*:* Versions 8.1 Vulnerable ·SUSE
- cpe:2.3:o:suse:suse_linux:8.2:*:*:*:*:*:*:* Versions 8.2 Vulnerable ·SUSE
- cpe:2.3:o:suse:suse_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·SUSE
- cpe:2.3:o:suse:suse_linux:9.1:*:*:*:*:*:*:* Versions 9.1 Vulnerable ·SUSE
- cpe:2.3:o:suse:suse_linux:9.2:*:*:*:*:*:*:* Versions 9.2 Vulnerable ·SUSE
- cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:* Versions 1.5 Vulnerable ·Trustix
Remediation
Red Hat 2 advisories
- RHSA-2004:653 Released 2004-12-20 · Red Hat rating Moderateapache, mod_ssl security update for Stronghold
- Red Hat Stronghold 4
- RHSA-2004:600 Released 2004-12-13 · Red Hat rating Moderateapache, mod_ssl security update
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1
- Red Hat Enterprise Linux ES version 2.1
- Red Hat Enterprise Linux WS version 2.1
- Red Hat Linux Advanced Workstation 2.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2004:600 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2004:600 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2004:600 |
| Red Hat Linux Advanced Workstation 2.1 | Fixed | RHSA-2004:600 |
| Red Hat Stronghold 4 | Fixed | RHSA-2004:653 |
| Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1) | Fixed | RHSA-2005:816 |
Timeline
- 2026-10-02 Threatist record created from CVE-2004-0940
- 2026-10-03 Alias added: GHSA-cx2h-jfxr-vw9c
References
Patch 7
- [httpd-cvs] 20210330 svn commit: r1073139 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/json/
- [httpd-cvs] 20210330 svn commit: r1073139 [3/13] - in /websites/staging/httpd/trunk/content: ./ security/json/
- [httpd-cvs] 20210330 svn commit: r1073140 [1/4] - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilities_24.html
- [httpd-cvs] 20210330 svn commit: r1888194 [3/13] - /httpd/site/trunk/content/security/json/
- [httpd-cvs] 20210330 svn commit: r1073149 [4/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/
- [httpd-cvs] 20210330 svn commit: r1073149 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/
- [httpd-cvs] 20210606 svn commit: r1075470 [1/4] - in /websites/staging/httpd/trunk/content: ./ security/json/CVE-2020-13938.json security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilities_24.html
Advisory 7
Sources
- CVE-2004-0940 · CVE Program
- CVE-2004-0940 · NVD
- FIRST EPSS
- GHSA-cx2h-jfxr-vw9c · GitHub Advisory Database · CC BY 4.0
- CVE-2004-0940 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences