Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade llama-index-core
to version 0.12.3 or higher.
llama-index-core is an Interface between LLMs and your data
Affected versions of this package are vulnerable to SQL Injection in the default_jsonalyzer()
function, which may allow arbitrary file writes or denial of service by occupying database resources. An attacker who can inject SQL into a prompt can cause the SQL commands to be run on the underlying sqlite instance, including ATTACH FILE
commands, which create files on the filesystem.