Live threats

All CVEs / vanna-ai

CVE-2024-5826vanna-ai/vanna

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Jun 27, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

In the latest version of vanna-ai/vanna, the `vanna.ask` function is vulnerable to remote code execution due to prompt injection. The root cause is the lack of a sandbox when executing LLM-generated code, allowing an attacker to manipulate the code executed by the `exec` function in `src/vanna/base/base.py`. This vulnerability can be exploited by an attacker to achieve remote code execution on the app backend server, potentially gaining full control of the server.

Original NVD text.

What to do

  1. Apply the vendor's security update for vanna-ai/vanna.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI vanna ≤ 0.6.2 no fixed version —
PyPI vanna ≤ 0.6.2 no fixed version —

Per OSV / GitHub Advisories (GHSA-rrqq-fv6m-692m, PYSEC-2026-562). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.