CVE-2024-5826 – vanna
Package
Manager: pip
Name: vanna
Vulnerable Version: >=0 <=0.6.2
Severity
Level: Critical
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.05652 pctl0.90003
Details
vanna vulnerable to remote code execution caused by prompt injection 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.
Metadata
Created: 2024-06-27T21:32:08Z
Modified: 2024-06-28T21:08:22Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-rrqq-fv6m-692m/GHSA-rrqq-fv6m-692m.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-rrqq-fv6m-692m
Finding: F422
Auto approve: 1