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

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

Critical 9.1

In plain English

A critical-severity unrestricted file upload in eosphoros-ai/db-gpt from eosphoros-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities).

Severity (CVSS 3.0)9.1Critical
Exploit odds (30 days)1.1%top 34.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdbgptno fix listedGHSA-7gj6-22m4-qfhx
PyPIdbgptno fix listedPYSEC-2026-322

Affected products (as reported)

VendorProductVersions
eosphoros-ai eosphoros-ai/db-gpt unspecified – through latest

Weakness: CWE-434 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

References