Every CVE Search/ Get API key

CVE-2024-7764

SQL Injection in vanna-ai/vanna

8.1 High

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the generate_sql function calls extract_sql with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the extract_sql function to remove all LLM generated SQL and execute the attacker's command if it passes the is_sql_valid function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
None

Exploit likelihood

0.78%Up 0.7 points since Mar 20, 2025
90%50%10%1%

What each source reports

CVE List Score used 8.1

SQL Injection in vanna-ai/vanna

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the generate_sql function calls extract_sql with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the extract_sql function to remove all LLM generated SQL and execute the attacker's command if it passes the is_sql_valid function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.

Record
CVE-2024-7764
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-89
Updated
2026-11-02
EUVDEUVD-2025-6951 8.1

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the generate_sql function calls extract_sql with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the extract_sql function to remove all LLM generated SQL and execute the attacker's command if it passes the is_sql_valid function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.

Record
EUVD-2025-6951
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-7g3f-q846-q9hx 8.1

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting...

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the generate_sql function calls extract_sql with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the extract_sql function to remove all LLM generated SQL and execute the attacker's command if it passes the is_sql_valid function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.

Record
GHSA-7g3f-q846-q9hx
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-89
Updated
2026-11-02
NVD 8.1

Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the generate_sql function calls extract_sql with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the extract_sql function to remove all LLM generated SQL and execute the attacker's command if it passes the is_sql_valid function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.

Record
CVE-2024-7764
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-89
Updated
2026-11-02

Affected products

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-7764 is a high vulnerability (CVSS 8.1) in Vanna-ai Vanna-ai/vanna, published March 20, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.78%, the 56th percentile. No source names a fixed version.

References

MoveEnter Open