logo

CVE-2025-6209 llama-index

Package

Manager: pip
Name: llama-index
Vulnerable Version: =0.12.27 || =0.12.28 || =0.12.29 || =0.12.30 || =0.12.31 || =0.12.32 || =0.12.33 || =0.12.34 || =0.12.35 || =0.12.36 || =0.12.37 || =0.12.38 || =0.12.39 || =0.12.40 || >=0 <cdeaab91a204d1c3527f177dac37390327aef274 || >=0.12.27 <0.12.41

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00082 pctl0.24829

Details

A path traversal vulnerability exists in run-llama/llama_index versions 0.12.27 through 0.12.40, specifically within the `encode_image` function in `generic_utils.py`. This vulnerability allows an attacker to manipulate the `image_path` input to read arbitrary files on the server, including sensitive system files. The issue arises due to improper validation or sanitization of the file path, enabling path traversal sequences to access files outside the intended directory. The vulnerability is fixed in version 0.12.41.

Metadata

Created: 2025-07-07T13:15:28Z
Modified: 2025-07-08T18:44:32.849537Z
Source: https://osv-vulnerabilities
CWE IDs: N/A
Alternative ID: N/A
Finding: F063
Auto approve: 1