CVE-2024-10901CWE-434

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

Critical · published March 20, 2025

CVSS v3.0
9.1
EPSS
1%
Percentile
65.3
In the wild
Unconfirmed
What it is

🚨 A single POST request to an unprotected API could let an attacker run any SQL query they want—yikes! 🔥 Think of it like a restaurant where anyone can walk straight into the kitchen and start cooking. Without any access checks, a rogue chef could whip up a malicious dish that wreaks havoc! This vulnerability is absolutely devastating—an attacker could write arbitrary files to your system, leading to Remote Code Execution (RCE) by adding harmful Python files right into the `/site-packages/` directory. This means they could fully control the server, steal sensitive data, or disrupt services, creating a perfect storm of chaos!

Put simply

Think of it like a restaurant where anyone can walk straight into the kitchen and start cooking. Without any access checks, a rogue chef could whip up a malicious dish that wreaks havoc! In eosphoros-ai/db-gpt version v0.6.0, the web API endpoint `POST /api/v1/editor/chart/run` lacks proper access control, allowing attackers to execute arbitrary SQL queries, which can be weaponized to perform Arbitrary File Write operations.

What to do

This vulnerability is absolutely devastating—an attacker could write arbitrary files to your system, leading to Remote Code Execution (RCE) by adding harmful Python files right into the `/site-packages/` directory. This means they could fully control the server, steal sensitive data, or disrupt services, creating a perfect storm of chaos! Immediately patch to the latest version of eosphoros-ai/db-gpt to eliminate this vulnerability. Review your API access controls and implement strict input validation to ensure no unauthorized SQL commands can be executed. Don't forget to check your server for any suspicious files! This is fixable! Take these steps, and you'll have your defenses strengthened in no time. 🛡️

The record
Technical detail
CVSS v3.0
9.1 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01095 · 65.3th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2025-03-20T10:09Z
EPSS history
Timeline
  • 20 MAR 10:09Z
    Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt
    cvelistv5