Skip to main content
← All vulnerabilities
CVE-2025-6209PYSEC-2026-1558GHSA-2RHQ-96Q8-4VJQPYSEC-2025-65

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.12.41
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • run-llama run-llama/llama_index

    fixed in 0.12.41

  • llama-index-corePyPI

    From 0.11.23 · fixed in 0.12.41

  • llama-indexPyPI

    From 0.12.27 · fixed in 0.12.41

References 2

huntr.com

GitHub · run-llama/llama_index