Patchfirst
CVE-2024-5827 Public exploit Critical · 9.8 EPSS 3.4%

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

No fixed version listed yet.Check the vendor advisory. References ↓

vanna-ai · vanna-ai/vanna

Summary

The vulnerability is an SQL injection flaw in the DuckDB integration of vanna-ai/vanna (vanna-ai vendor) version 0.3.4, reachable through its Flask web APIs. An unauthenticated remote attacker can submit malicious SQL training data and trigger generation of corresponding queries that write arbitrary files to the victim's file system, such as a PHP backdoor, which can lead to command execution.

Official description · CVE.org

Vanna v0.3.4 is vulnerable to SQL injection in its DuckDB integration exposed to its Flask Web APIs. Attackers can inject malicious SQL training data and generate corresponding queries to write arbitrary files on the victim's file system, such as backdoor.php with contents `<?php system($_GET[0]); ?>`. This can lead to command execution or the creation of backdoors.

Breakdown
64.7 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 5 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+5 mo

Affected versions and fixes

as published in the CVE record

vanna-ai vanna-ai/vanna

Affected: >= unspecified, <= latest

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close