{"id":"CVE-2024-5565","published":"2024-05-31T14:24:21Z","modified":"2024-11-25T12:52:55Z","title":"Prompt Injection in \"ask\" API with visualization leads to RCE","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.15178,"percentile":0.96828,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/vanna-prompt-injection-rce-jfsa-2024-001034449/","tags":["third-party-advisory"]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":19.37},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-05-31T16:06:06.334889Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vanna","vulnerableRanges":["<=0.5.5"],"patched":[],"from":["GHSA-7735-w2jp-gvg6","PYSEC-2026-561"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-1479","exploited":false,"provenance":"source"},"summary":{"text":"The Vanna library's \"ask\" API, in its visualization step, contains a flaw in which the prompt used to generate visualization code can be altered by prompt injection, causing the library to execute attacker-supplied Python instead of the intended code. An attacker who can supply external input to the \"ask\" method with \"visualize\" set to True (the default) can achieve remote code execution, and the attack is reachable over the network without authentication or user interaction, though it requires a high-complexity attack condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:55Z"}}