---
title: "CVE-2024-5565: Vanna prompt injection code execution"
url: https://erroneo.us/security/cve/CVE-2024-5565/
description: "CVE-2024-5565 (vanna (PyPI)): The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-05-31
date_modified: 2024-11-25
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-5565"
kev: false
cvss: 9.2
epss: 0.15178
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-5565: Vanna prompt injection code execution

**Signal:** High exploit likelihood. EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 15.2% , percentile 97: FIRST’s model estimates a 15.2% chance of exploitation activity in the next 30 days, higher than 97% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes vanna (PyPI) <= 0.5.5, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

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 packages

- PyPI `vanna` <= 0.5.5 → fixed: none listed

## Affected products (CVE record)

-  vanna: 0

## Severity

- JFROG CVSS 3.1: 8.1 `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.2 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 15.18% probability of exploitation activity in the next 30 days; percentile 97.

## Sources

- [GitHub Advisory GHSA-7735-w2jp-gvg6](https://github.com/advisories/GHSA-7735-w2jp-gvg6)
- [CVE.org record CVE-2024-5565](https://www.cve.org/CVERecord?id=CVE-2024-5565)
- [NVD entry CVE-2024-5565](https://nvd.nist.gov/vuln/detail/CVE-2024-5565)
- [research.jfrog.com](https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449/)

---
Source page: https://erroneo.us/security/cve/CVE-2024-5565/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
