Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-10831
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 22:51 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 20 Mar 2025, 10:09 UTC

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.

osv:CVE-2024-10831
Complete source record
{
  "id": "88e652d99df606590d1b9c9a34631873fb84872cde3f506e5e1b8d94048e6c1f",
  "url": "https://osv.dev/vulnerability/CVE-2024-10831",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt",
    "summary": "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.",
    "evidence": "osv:CVE-2024-10831",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-10831",
      "aliases": [
        "CVE-2024-10831",
        "GHSA-hhw5-29f6-hf4x",
        "PYSEC-2026-323"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/eosphoros-ai/db-gpt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b34295562924046c229f0fd424ac3c7b54b7ecc8"
                },
                {
                  "last_affected": "b34295562924046c229f0fd424ac3c7b54b7ecc8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:dbgpt:db-gpt:0.6.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.6.0"
                      },
                      {
                        "last_affected": "0.6.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.6.0",
            "v0.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10831.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.998029901Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/5c34c39f-66d4-414c-ab6a-f7888a5d882a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10831.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-10831"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-36"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10831.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-10831",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499187,
  "published_at": "2025-03-20T10:09:08.548+00:00"
}