Skip to content
OpenAdvisories
High · 8.1 CVE-2024-5565 EUVD-2024-1479GHSA-7735-w2jp-gvg6PYSEC-2026-561

Prompt Injection in "ask" API with visualization leads to RCE

Published May 31, 2024 · Updated Nov 25, 2024 · Assigned by JFROG

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.

Affected products

VendorProductAffectedFixed
— vanna — —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vanna <= 0.5.5 — GHSA-7735-w2jp-gvg6

References