PyPi: Vanna

CVE-2024-5565

Safety vulnerability ID: 71786

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at May 31, 2024 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

Vanna uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to the library’s “ask” method with "visualize" set to True (default behavior) leads to remote code execution.

Affected package

vanna

Latest version: 0.7.5

Generate SQL queries from natural language

Affected versions

Fixed versions

Vulnerability changelog

The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to the library’s “ask” method with "visualize" set to True (default behavior) leads to remote code execution. See CVE-2024-5565.


MISC:https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449/: https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449/

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application