CVE-2024-10831
JSON

9.1critical

Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt

Severity
9.1critical CVSS:3.0 by @huntr_ai
Exploit likelihood
0.83% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-hhw5-29f6-hf4xPYSEC-2026-323

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.

Affected

Product or packageVersionsReported by
eosphoros-ai eosphoros-ai/db-gptfrom unspecified up to latestCVE List
dbgpt (PyPI)up to 0.6.0GitHub Advisory Database, PyPA Advisory Database
dbgpt db-gpt0.6.0NVD

All scores

@huntr_ai9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
PyPA Advisory Database9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-36

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En la versión 0.6.0 de eosphoros-ai/db-gpt, el endpoint para subir archivos es vulnerable a path traversal absoluto. Esta vulnerabilidad permite a un atacante subir archivos arbitrarios a ubicaciones arbitrarias en el servidor objetivo. El problema surge porque los parámetros `file_key` y `doc_file.filename` son controlables por el usuario, lo que permite la construcción de rutas fuera del directorio de destino. Esto puede provocar la sobrescritura de archivos esenciales del sistema, como claves SSH, para su posterior explotación.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-10831 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-hhw5-29f6-hf4x changed 2026-10-27CC-BY-4.0
NVDCVE-2024-10831 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-323 changed 2026-07-01CC-BY-4.0