GitHub Advisoryadvisory · PyPI

GHSA-7735-w2jp-gvg6 Vanna prompt injection code execution

CRITICAL Published 2024-05-31 Modified 2024-11-25 Official page ↗
Aliases
CVE-2024-5565
Ecosystem
PyPI
Packages
vanna
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-77, CWE-94
Reviewed
2024-06-04

Affected packages

• PyPI vanna: <= 0.5.5 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2024-5565 The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt… vulnerability

Weakness · CWE (2)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness
  • CWE-94 Improper Control of Generation of Code weakness

References