Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vanna
  4. ›
  5. CVE-2024-5565

CVE-2024-5565: Vanna prompt injection code execution

May 31, 2024 (updated November 25, 2024)

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

  • github.com/advisories/GHSA-7735-w2jp-gvg6
  • github.com/vanna-ai/vanna
  • nvd.nist.gov/vuln/detail/CVE-2024-5565
  • research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449

Code Behaviors & Features

Detect and mitigate CVE-2024-5565 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.5.5

Solution

Unfortunately, there is no solution available yet.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/vanna/CVE-2024-5565.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:08 +0000.