# CVE-2026-51862: DB-GPT directory traversal in skill_upload endpoint

Source: https://junglewise.ai/threats/cve-2026-51862-db-gpt-0-8-0-contains-directory-traversal-in-skill-upload  
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-51862 · Severity: info · Published 2026-09-30

DB-GPT is an open-source framework for building conversational AI applications. A directory traversal vulnerability in the skill upload endpoint allows remote attackers to write files outside the intended storage boundaries, potentially leading to code execution or system compromise by placing malicious files in arbitrary locations on the server.

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

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

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

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

**Am I affected by CVE-2026-51862?** 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 vulnerability is a path traversal flaw in the agentic_data_api.py skill_upload endpoint that fails to properly validate user-supplied filenames. An unauthenticated remote attacker can craft requests with path traversal sequences (e.g., "../") to write files outside the designated workspace directory. The API accepts file uploads without sanitizing the path, enabling arbitrary file write capabilities.

## Affected products

- eosphoros-ai DB-GPT 0.8.0

## Timeline

- 2026-09-30: disclosed
- 2026-04-20: other: Issue reported on GitHub

## References

- [https://gist.github.com/Ro1ME/c09e6aca2e9c7280ca4fabb1f44dcd2a](https://gist.github.com/Ro1ME/c09e6aca2e9c7280ca4fabb1f44dcd2a)
- [https://github.com/eosphoros-ai/DB-GPT/issues/3026](https://github.com/eosphoros-ai/DB-GPT/issues/3026)

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