Arbitrary File Read through Path Traversal in run-llama/llama_index
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.0 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| run-llama | run-llama/llama_index | before 0.12.41 | 0.12.41 | Patch available | CNA |
| — | llama-index-core (PyPI) | 0.11.23 to before 0.12.41 | 0.12.41 | Patch available | GHSA-2rhq-96q8-4vjq |
- run-llama/llama_index Vendorrun-llama Affected before 0.12.41 Fixed in 0.12.41 Patch available CNA
- llama-index-core (PyPI) Vendor— Affected 0.11.23 to before 0.12.41 Fixed in 0.12.41 Patch available GHSA-2rhq-96q8-4vjq
Remediation
- Fix · CNA run-llama/llama_index (run-llama) Fixed in 0.12.41
- Fix · GHSA-2rhq-96q8-4vjq llama-index-core (PyPI) Fixed in 0.12.41 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-6209
- 2026-10-03 Alias added: GHSA-2rhq-96q8-4vjq
- 2026-11-07 EPSS moved to the 50th–90th percentile
References
More run-llama Llamaindex vulnerabilities
- TI-2025-01545 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
- TI-2025-01507 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
- TI-2024-11960 SQL Injection to RCE in run-llama/llama_index CVSS 3.1CRITICAL 9.8
- TI-2024-11094 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
- TI-2024-03068 Command Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
- TI-2024-15754 LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-6209 · CVE Program
- CVE-2025-6209 · NVD
- FIRST EPSS
- GHSA-2rhq-96q8-4vjq · GitHub Advisory Database · CC BY 4.0
- CVE-2025-6209 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences