Security mailing lists by PureSourceCode

CVE-2024-5826

CRITICAL 9.8CVSS 3.0

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.

Published
27 Jun 2024
Last modified
1 Jul 2026
Assigned by
security@huntr.dev
NVD status
Deferred
Weakness
CWE-94
Also known as
GHSA-rrqq-fv6m-692mPYSEC-2026-562
Sources
NVDJSONOSV GHSA-rrqq-fv6m-692mJSONOSV PYSEC-2026-562JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@huntr.dev (Secondary) CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI vanna <= 0.6.2

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Jun 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Jun 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.