CVE-2024-10835CWE-89

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

Critical · published March 20, 2025

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

🚨 A simple API call can lead to chaos! In eosphoros-ai/db-gpt v0.6.0, attackers can execute arbitrary SQL queries without any checks. 🔥 Think of it like a restaurant that takes orders for any dish without checking the menu—a hungry patron could end up ordering something wildly inappropriate, like a five-course meal from the dumpster! This vulnerability allows attackers to write any file onto the victim's file system, which opens the door to potentially devastating Remote Code Execution (RCE). Imagine an intruder slipping malicious scripts into your system through the back door, leading to full control over your environment—absolutely devastating!

Put simply

Think of it like a restaurant that takes orders for any dish without checking the menu—a hungry patron could end up ordering something wildly inappropriate, like a five-course meal from the dumpster! The flaw resides in the web API endpoint `POST /api/v1/editor/sql/run`, which fails to enforce access controls, letting anyone run arbitrary SQL commands against the database.

What to do

This vulnerability allows attackers to write any file onto the victim's file system, which opens the door to potentially devastating Remote Code Execution (RCE). Imagine an intruder slipping malicious scripts into your system through the back door, leading to full control over your environment—absolutely devastating! Immediately upgrade to the fixed version to address this vulnerability. Review access controls for your API endpoints and consider implementing input validation to prevent unauthorized SQL execution. Don't forget to audit your application for exposure! You’ve got this! Secure your system and keep those intruders at bay! 🛡️

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.01183 · 67.5th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-03-20T10:09Z
EPSS history
Timeline
  • 20 MAR 10:09Z
    Arbitrary File Write via SQL Injection in eosphoros-ai/db-gpt
    cvelistv5