Path traversal in llama_index - CVE-2025-6209

 

Path traversal in llama_index - CVE-2025-6209

Published: February 17, 2026


Vulnerability identifier: #VU123000
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-6209
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: run-llama (LlamaIndex)
Affected software:
llama_index

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in run-llama/llama_index, specifically within the `encode_image` function in `generic_utils.py`. A remote attacker can send a specially crafted HTTP request and manipulate the `image_path` input to read arbitrary files on the server, including sensitive system files.


How to mitigate CVE-2025-6209

Cybersecurity Help is currently unaware of any official solution to address this vulnerability..

Sources