CVE-2024-5827CWE-89

Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna

Critical · published June 28, 2024

CVSS v3.0
9.8
EPSS
3%
Percentile
88.9
In the wild
Unconfirmed
What it is

🚨 SQL injection alert! Vanna v0.3.4 has a sneaky weakness in its DuckDB integration, allowing attackers to run arbitrary commands — think of it as leaving the back door wide open! 🔥 Imagine a restaurant where customers can submit their own secret ingredients to the chef without any checks. If the chef isn't careful, they might serve up a dish that includes something harmful without realizing it! This SQL injection lets attackers ‘cook up’ malicious commands on your system without permission. An attacker could inject malicious SQL training data, leading to the creation of a backdoor file on your server, such as `backdoor.php`. This could allow them to execute commands at will, effectively taking over your system and compromising your sensitive data. The potential fallout from this is absolutely devastating!

Put simply

Imagine a restaurant where customers can submit their own secret ingredients to the chef without any checks. If the chef isn't careful, they might serve up a dish that includes something harmful without realizing it! This SQL injection lets attackers ‘cook up’ malicious commands on your system without permission. This vulnerability in Vanna's Flask Web APIs allows attackers to exploit SQL injection by providing harmful input that the application fails to sanitize, ultimately enabling them to write files on the server's filesystem.

What to do

An attacker could inject malicious SQL training data, leading to the creation of a backdoor file on your server, such as `backdoor.php`. This could allow them to execute commands at will, effectively taking over your system and compromising your sensitive data. The potential fallout from this is absolutely devastating! Immediate action is required! Update Vanna to version 0.3.5 or later to patch this vulnerability. Additionally, ensure that any user input to your SQL queries is properly sanitized and validated to prevent similar injection attacks in the future. You've got this! With these steps, you can secure your application and protect your data! 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03424 · 88.9th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2024-06-28T19:27Z
EPSS history
Timeline
  • 28 JUN 19:27Z
    Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
    cvelistv5