# CVE-2026-51864: DB-GPT directory traversal in python_file_upload

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

CVE-2026-51864 · Severity: info · Published 2026-09-30

DB-GPT is an open-source AI database assistant that allows uploading Python files for data processing and analysis. A directory traversal vulnerability in the file upload endpoint allows attackers to write arbitrary files outside the intended workspace, potentially overwriting system files or injecting malicious code into the application.

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-51864 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51864 being exploited in the wild.

**How severe is CVE-2026-51864?** Informational severity, published 30 September 2026.

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

**Is there a fix for CVE-2026-51864?** 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-51864 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-51864?** 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 python_file_upload endpoint in python_upload_api.py fails to properly validate file paths, allowing attackers to use path traversal sequences (e.g., ../) to write files outside the intended upload directory. An unauthenticated remote attacker can exploit this via a crafted upload request to achieve arbitrary file write on the server, potentially leading to code execution or data compromise depending on file permissions and application logic.

## Affected products

- eosphoros-ai DB-GPT 0.7.5, 0.8.0

## Timeline

- 2026-09-30: disclosed

## References

- [https://gist.github.com/Ro1ME/164a2aff1229df650a5bcc2a039900c5](https://gist.github.com/Ro1ME/164a2aff1229df650a5bcc2a039900c5)
- [https://github.com/eosphoros-ai/DB-GPT/issues/3027](https://github.com/eosphoros-ai/DB-GPT/issues/3027)

## 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 directory traversal in use_example_file](https://junglewise.ai/threats/cve-2026-51863-db-gpt-v0-7-5-and-0-8-0-contains-directory-traversal-in-use)
- [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)
