cve.bz

CVE-2004-0940 Incorrect Calculation of Buffer Size

7.8 highExploitEPSS 4.8%Fix available

High (7.8). EPSS 4.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.8% (unchanged from 4.8% a week ago; 4.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2004-0940 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2004-0940?via=ask-ai-copy and https://cve.bz/cve/CVE-2004-0940?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2004-0940 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:http_serverfrom 1.3 through 1.3.32
openpkg:openpkg2.0
openpkg:openpkg2.1
openpkg:openpkg2.2
hp:hp-ux11.00
hp:hp-ux11.11
hp:hp-ux11.20
hp:hp-ux11.22
slackware:slackware_linux8.0
slackware:slackware_linux8.1
slackware:slackware_linux9.0
slackware:slackware_linux9.1
slackware:slackware_linux10.0
slackware:slackware_linuxcurrent
suse:suse_linux8.0
suse:suse_linux8.1
suse:suse_linux8.2
suse:suse_linux9.0
suse:suse_linux9.1
suse:suse_linux9.2
trustix:secure_linux1.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian3.0apache1.3.26-0woody6DSA-594-1

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux AS (Advanced Server) version 2.1Fixed 2004-12-13RHSA-2004:600
Red Hat Enterprise Linux ES version 2.1Fixed 2004-12-13RHSA-2004:600
Red Hat Enterprise Linux WS version 2.1Fixed 2004-12-13RHSA-2004:600
Red Hat Linux Advanced Workstation 2.1Fixed 2004-12-13RHSA-2004:600
Red Hat Stronghold 4Fixed 2004-12-20RHSA-2004:653
Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1)Fixed 2005-11-02RHSA-2005:816

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2004-0940.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON