Skip to content

Vanna prompt injection code execution

High severity GitHub Reviewed Published May 31, 2024 to the GitHub Advisory Database • Updated Jun 4, 2024

Package

pip vanna (pip)

Affected versions

<= 0.5.5

Patched versions

None

Description

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.

References

Published by the National Vulnerability Database May 31, 2024
Published to the GitHub Advisory Database May 31, 2024
Reviewed Jun 4, 2024
Last updated Jun 4, 2024

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2024-5565

GHSA ID

GHSA-7735-w2jp-gvg6

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.