# CVE-2026-51863: DB-GPT directory traversal in use_example_file

Source: https://junglewise.ai/threats/cve-2026-51863-db-gpt-v0-7-5-and-0-8-0-contains-directory-traversal-in-use  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-29. Updated: 2026-10-29  
License: CC BY 4.0 with a link back

CVE-2026-51863 · Severity: info · Published 2026-10-29

DB-GPT is an AI database assistant platform. A directory traversal vulnerability in the example file upload API allows authenticated users to write files outside the intended storage boundary, potentially enabling arbitrary file write attacks. An attacker could overwrite critical files or place backdoors on the system if the example files dictionary is compromised through configuration injection or database manipulation.

Technologies: [Eosphoros-Ai DB-GPT](https://junglewise.ai/threats/technologies/db-gpt). Vendors: [Eosphoros-Ai](https://junglewise.ai/threats/vendors/eosphoros-ai).

## Quick answers

**Is CVE-2026-51863 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51863 being exploited in the wild.

**How severe is CVE-2026-51863?** Informational severity, published 29 October 2026.

**Which products and versions are affected?** Eosphoros-Ai DB-GPT 0.7.5, 0.8.0.

**Is there a fix for CVE-2026-51863?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51863 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-51863?** Check whether you run Eosphoros-Ai DB-GPT at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The use_example_file endpoint in examples_api.py validates the example_id against a whitelist but fails to validate the example["name"] field for path traversal sequences like "..", allowing attackers to construct paths that escape the user's upload directory. The vulnerability requires either authentication or control over the EXAMPLE_FILES dictionary through configuration injection or database manipulation. A successful exploit enables arbitrary file write to any location the application process has write permissions.

## Affected products

- eosphoros-ai DB-GPT 0.7.5, 0.8.0

## Timeline

- 2026-10-29: disclosed
- 2026-04-20: other: Original bug report filed

## References

- [https://gist.github.com/Ro1ME/8be4e1bad6c9d7a777ec7638b1192dee](https://gist.github.com/Ro1ME/8be4e1bad6c9d7a777ec7638b1192dee)
- [https://github.com/eosphoros-ai/DB-GPT/issues/3028](https://github.com/eosphoros-ai/DB-GPT/issues/3028)

## Related threats

- [eosphoros-ai DB-GPT remote code execution in HuggingFace adapter](https://junglewise.ai/threats/cve-2026-123019-a-weakness-has-been-identified-in-eosphoros-ai-db-gpt-up-to-0-8)
- [eosphoros-ai DB-GPT code injection in CodeAction](https://junglewise.ai/threats/cve-2026-123018-a-security-flaw-has-been-discovered-in-eosphoros-ai-db-gpt-up-to)
- [DB-GPT hardcoded credentials in default Docker configuration](https://junglewise.ai/threats/cve-2026-77933-db-gpt-through-0-8-2-contains-a-hardcoded-credentials)
- [DB-GPT unauthenticated remote code execution](https://junglewise.ai/threats/cve-2026-77932-db-gpt-through-0-8-2-contains-an-unauthenticated-remote-code)
- [DB-GPT sandbox API fallback to LocalRuntime code execution](https://junglewise.ai/threats/cve-2026-51869-db-gpt-v0-8-0-sandbox-api-silently-falls-back-to-localruntime-and)
