Prompt Injection in "ask" API with visualization leads to RCE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | vanna | all versions | — | No fix listed | CNA |
| — | vanna (PyPI) | up to 0.5.5 | — | No fix listed | GHSA-7735-w2jp-gvg6 |
- vanna Vendor— Affected all versions Fixed in — No fix listed CNA
- vanna (PyPI) Vendor— Affected up to 0.5.5 Fixed in — No fix listed GHSA-7735-w2jp-gvg6
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vanna-ai:vanna:-:*:*:*:*:*:*:* | not specified by CISA-ADP | — | — |
- cpe:2.3:a:vanna-ai:vanna:-:*:*:*:*:*:*:* Versions not specified by CISA-ADP — ·—
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5565
- 2026-10-03 Alias added: GHSA-7735-w2jp-gvg6
References
Sources
- CVE-2024-5565 · CVE Program
- CVE-2024-5565 · NVD
- FIRST EPSS
- GHSA-7735-w2jp-gvg6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences