Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-10901 EUVD-2025-7089GHSA-7gj6-22m4-qfhxPYSEC-2026-322

Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

Description

In eosphoros-ai/db-gpt version v0.6.0, 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.

Affected products

VendorProductAffectedFixed
eosphoros-ai eosphoros-ai/db-gpt unspecified – ≤ latest —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dbgpt <= 0.6.3 — GHSA-7gj6-22m4-qfhx

References