# CVE-2024-10831: Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt

- Severity: Critical 9.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:08.548Z
- Modified: 2026-10-27T16:30:07.119Z
- Also known as: GHSA-hhw5-29f6-hf4x, PYSEC-2026-323
- Weaknesses: CWE-36
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

In eosphoros-ai/db-gpt version 0.6.0, the endpoint for uploading files is vulnerable to absolute path traversal. This vulnerability allows an attacker to upload arbitrary files to arbitrary locations on the target server. The issue arises because the `file_key` and `doc_file.filename` parameters are user-controllable, enabling the construction of paths outside the intended directory. This can lead to overwriting essential system files, such as SSH keys, for further exploitation.

(As written by CVE List.)

## Affected

- eosphoros-ai eosphoros-ai/db-gpt: from unspecified up to latest
- dbgpt (PyPI): up to 0.6.0
- dbgpt db-gpt: 0.6.0

## Every score

- @huntr_ai: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://huntr.com/bounties/5c34c39f-66d4-414c-ab6a-f7888a5d882a> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10831> (advisory)
- <https://github.com/eosphoros-ai/DB-GPT> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/dbgpt/PYSEC-2026-323.yaml> (web)
- <https://pypi.org/project/dbgpt> (package, web)
- <https://github.com/advisories/GHSA-hhw5-29f6-hf4x> (advisory)

## Sources

- CVE List: [CVE-2024-10831](https://www.cve.org/CVERecord?id=CVE-2024-10831), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-hhw5-29f6-hf4x](https://github.com/advisories/GHSA-hhw5-29f6-hf4x), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2024-10831](https://nvd.nist.gov/vuln/detail/CVE-2024-10831), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-323](https://osv.dev/vulnerability/PYSEC-2026-323), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-10831 · Whole record: https://cve.day/CVE-2024-10831.json · Rebuilt by cve.day 2026-11-25T22:58:52.338Z
