CVE-2025-6209CWE-29

Arbitrary File Read through Path Traversal in run-llama/llama_index

High · published July 7, 2025

CVSS v3.0
7.5
EPSS
1%
Percentile
49.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
7.5 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00621 · 49.1th percentile
Weakness
CWE-29 · Path Traversal: '\..\filename'
Published
2025-07-07T12:21Z
EPSS history
Timeline
  • 07 JUL 12:21Z
    Arbitrary File Read through Path Traversal in run-llama/llama_index
    cvelistv5