Skip to main content
CVE-2025-6209VulnerabilityPublished

CVE-2025-6209: run-llama/llama_index · Path Traversal: '\..\filename'

Affects run-llama/llama_indexSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High · fixed in 0.12.41 : patch run-llama/llama_index soon.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.12.41
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
run-llama run-llama/llama_indexAffected
  • >=0.12.27 <=0.12.40
Fixed in–

AI-suggested

European organizations should immediately upgrade run-llama/llama_index to version 0.12.41 or later, where the vulnerability is fixed. Until the upgrade is applied, organizations should implement strict input validation and sanitization on all user-supplied file paths to prevent path traversal sequences. Employ application-layer firewalls or web application firewalls (WAFs) with custom rules to detect and block suspicious path traversal patterns in requests. Restrict file system permissions so that the application process has access only to necessary directories and files, minimizing exposure if exploitation occurs. Conduct thorough code reviews and static analysis on any custom code interacting with file paths to ensure no similar vulnerabilities exist. Monitor logs for unusual file access patterns or errors that could indicate attempted exploitation. Finally, ensure network segmentation and limit exposure of vulnerable services to trusted internal networks when possible to reduce attack surface.

Description

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.

References

Community reviews

Loading reviews…