# CVE-2024-5565: Prompt Injection in "ask" API with visualization leads to RCE

- Severity: High 8.1 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 15.2%, higher than 96% of CVEs (2026-12-02)
- Published: 2024-05-31T14:24:21.663Z
- Modified: 2026-07-01T20:23:10.987Z
- Also known as: GHSA-7735-w2jp-gvg6, PYSEC-2026-561
- Weaknesses: CWE-77, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- vanna: 0
- vanna-ai vanna: -
- vanna (PyPI): up to 0.5.5

## Every score

- JFROG: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5565> (advisory)
- <https://github.com/vanna-ai/vanna> (package)
- <https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449> (web)
- <https://pypi.org/project/vanna> (package)
- <https://github.com/advisories/GHSA-7735-w2jp-gvg6> (advisory)

## Sources

- CVE List: [CVE-2024-5565](https://www.cve.org/CVERecord?id=CVE-2024-5565), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-7735-w2jp-gvg6](https://github.com/advisories/GHSA-7735-w2jp-gvg6), CC-BY-4.0, modified 2026-06-29
- NVD: [CVE-2024-5565](https://nvd.nist.gov/vuln/detail/CVE-2024-5565), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-561](https://osv.dev/vulnerability/PYSEC-2026-561), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-5565 · Whole record: https://cve.day/CVE-2024-5565.json · Rebuilt by cve.day 2026-11-25T22:58:41.326Z
