CVE-2025-6209: run-llama/llama_index · Path Traversal: '\..\filename'
Affects run-llama/llama_indexSource CVE Database V5
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| run-llama run-llama/llama_index | Affected
| 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.