SQL Injection Affecting llama-index-core package, versions [,0.12.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

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 applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMAINDEXCORE-9510942
  • published23 Mar 2025
  • disclosed20 Mar 2025
  • creditlife-team2024

Introduced: 20 Mar 2025

NewCVE-2024-12911  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade llama-index-core to version 0.12.3 or higher.

Overview

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.

CVSS Base Scores

version 4.0
version 3.1