Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-5826— Remote Code Execution via Prompt Injection in vanna-ai/vanna

Quick assessment

Affected
vanna-ai vanna-ai/vanna
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Vanna是Vanna公司的一个个性化 AI SQL 代理。 vanna 存在代码注入漏洞,该漏洞源于执行 LLM 生成代码缺少沙箱,导致攻击者可以操控 src/vanna/base/base.py 中的 exec函数,攻击者利用该漏洞可以在应用后端服务器上实现远程代码执行。

AI Predicted 9.8 Difficulty: Easy EPSS 0.88% · P58
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-5826

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Remote Code Execution via Prompt Injection in vanna-ai/vanna
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
vanna 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Vanna是Vanna公司的一个个性化 AI SQL 代理。 vanna 存在代码注入漏洞,该漏洞源于执行 LLM 生成代码缺少沙箱,导致攻击者可以操控 src/vanna/base/base.py 中的 exec函数,攻击者利用该漏洞可以在应用后端服务器上实现远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
vanna-ai vanna-ai/vanna unspecified ~ latest -

II. Public POCs for CVE-2024-5826

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-5826

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-5826 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-5826

No comments yet


Leave a comment