Skip to content
Heist/ feed
Back to feed
Critical

DB-GPT Arbitrary File Write vulnerability

Type: advisorySources: OSV

In eosphoros-ai/db-gpt version v0.6.3 and earlier, the web API `POST /api/v1/editor/chart/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE) by writing malicious files such as `__init__.py` in the Python's `/site-packages/` directory.

Products
dbgpt
Affected versions
0.4.7, 0.5.0, 0.5.1, 0.5.10, 0.5.1rc0, 0.5.2, 0.5.2rc0, 0.5.3, 0.5.3rc0, 0.5.4, 0.5.4rc0, 0.5.5, 0.5.5rc0, 0.5.6, 0.5.6rc0, 0.5.7, 0.5.7rc0, 0.5.8, 0.5.9, 0.5.9rc0, 0.6.1, 0.6.2, 0.6.3, 0.6.3rc0, 0.6.3rc1, 0.6.3rc2, 0.6.3rc3
Fixed versions
Not specified
CVEs
CVE-2024-10901
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 18:47 UTC · Revision 1

Source evidence

DB-GPT Arbitrary File Write vulnerability

core-osv · Original source

Published 20 Mar 2025, 12:32 UTC

In eosphoros-ai/db-gpt version v0.6.3 and earlier, the web API `POST /api/v1/editor/chart/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE) by writing malicious files such as `__init__.py` in the Python's `/site-packages/` directory.

osv:GHSA-7gj6-22m4-qfhx

dbgpt

Fixed versions: Not specified

Complete source record
{
  "id": "b3635eb45a4891d74f17b1544854143897806fc81132edd2919f91aac5b5f75f",
  "url": "https://osv.dev/vulnerability/GHSA-7gj6-22m4-qfhx",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DB-GPT Arbitrary File Write vulnerability",
    "summary": "In eosphoros-ai/db-gpt version v0.6.3 and earlier, the web API `POST /api/v1/editor/chart/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE) by writing malicious files such as `__init__.py` in the Python's `/site-packages/` directory.",
    "evidence": "osv:GHSA-7gj6-22m4-qfhx",
    "products": [
      {
        "name": {
          "value": "dbgpt",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.10",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.1rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.2rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.3rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.4rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.5rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.6rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.7rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.8",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.9",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.9rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.3rc0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.3rc1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.3rc2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.3rc3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "GHSA-7gj6-22m4-qfhx",
      "aliases": [
        "CVE-2024-10901",
        "GHSA-7gj6-22m4-qfhx",
        "PYSEC-2026-322"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0.6.3"
                }
              ]
            }
          ],
          "package": {
            "name": "dbgpt",
            "purl": "pkg:pypi/dbgpt",
            "ecosystem": "PyPI"
          },
          "versions": [
            "0.4.7",
            "0.5.0",
            "0.5.1",
            "0.5.10",
            "0.5.1rc0",
            "0.5.2",
            "0.5.2rc0",
            "0.5.3",
            "0.5.3rc0",
            "0.5.4",
            "0.5.4rc0",
            "0.5.5",
            "0.5.5rc0",
            "0.5.6",
            "0.5.6rc0",
            "0.5.7",
            "0.5.7rc0",
            "0.5.8",
            "0.5.9",
            "0.5.9rc0",
            "0.6.1",
            "0.6.2",
            "0.6.3",
            "0.6.3rc0",
            "0.6.3rc1",
            "0.6.3rc2",
            "0.6.3rc3"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-7gj6-22m4-qfhx/GHSA-7gj6-22m4-qfhx.json"
          }
        }
      ],
      "modified": "2026-10-27T16:45:04.538255723Z",
      "provider": "osv",
      "references": [
        "https://nvd.nist.gov/vuln/detail/CVE-2024-10901",
        "https://github.com/eosphoros-ai/DB-GPT/pull/2269",
        "https://github.com/eosphoros-ai/DB-GPT/commit/295cdb8723663d5b0954d5d1dfb4f02b7223b8ff",
        "https://github.com/eosphoros-ai/DB-GPT",
        "https://github.com/pypa/advisory-database/tree/main/vulns/dbgpt/PYSEC-2026-322.yaml",
        "https://huntr.com/bounties/db2c1d59-6e3a-4553-a1f6-94c8df162a18",
        "https://pypi.org/project/dbgpt"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-434",
          "CWE-89"
        ],
        "severity": "CRITICAL",
        "github_reviewed": true,
        "nvd_published_at": "2025-03-20T10:15:20Z",
        "github_reviewed_at": "2025-03-21T15:48:20Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-10901",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 462884,
  "published_at": "2025-03-20T12:32:40+00:00"
}