CVE-2024-10834CWE-73

Arbitrary File Write in eosphoros-ai/db-gpt

Critical · published March 20, 2025

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

🚨 An absolute path could lead to absolute chaos! With eosphoros-ai/db-gpt version 0.6.0, attackers can write files anywhere on the server just by tweaking a filename. 🔥 Think of it like a restaurant where the chef can choose any pantry to store ingredients, even if they disrupt the whole kitchen. Instead of just seasoning the dish, they could spoil supplies or even replace the chef's knife! This vulnerability allows an attacker to overwrite critical system files or create new SSH key entries, which could lead to total server compromise. The implications? Imagine losing access to your own kitchen while the intruder takes over the menu—absolutely devastating!

Put simply

Think of it like a restaurant where the chef can choose any pantry to store ingredients, even if they disrupt the whole kitchen. Instead of just seasoning the dish, they could spoil supplies or even replace the chef's knife! The issue stems from the RAG-knowledge endpoint, where passing an absolute path to `os.path.join` permits arbitrary file writes. This means attackers can control where files are written on the target server, leading to unauthorized modifications.

What to do

This vulnerability allows an attacker to overwrite critical system files or create new SSH key entries, which could lead to total server compromise. The implications? Imagine losing access to your own kitchen while the intruder takes over the menu—absolutely devastating! Immediately upgrade to the latest version of eosphoros-ai/db-gpt to patch this vulnerability. Additionally, sanitize any input that could allow for absolute paths to ensure your filesystem remains secure. Regular audits and checks are also recommended to identify any unauthorized changes. You've got this! Follow these steps, and you'll secure your server 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.00637 · 49.9th percentile
Weakness
CWE-73 · External Control of File Name or Path
Published
2025-03-20T10:11Z
EPSS history
Timeline
  • 20 MAR 10:11Z
    Arbitrary File Write in eosphoros-ai/db-gpt
    cvelistv5