Insecure Temporary File Handling in run-llama/llama_index
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
The llama-index-core package, up to version 0.12.44, contains a vulnerability in the `get_cache_dir()` function where a predictable, hardcoded directory path `/tmp/llama_index` is used on Linux systems without proper security controls. This vulnerability allows attackers on multi-user systems to steal proprietary models, poison cached embeddings, or conduct symlink attacks. The issue affects all Linux deployments where multiple users share the same system. The vulnerability is classified under CWE-379, CWE-377, and CWE-367, indicating insecure temporary file creation and potential race conditions.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- 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 v0.13.0 | v0.13.0 | Patch available | CNA |
| — | llama-index-core (PyPI) | before 0.13.0 | 0.13.0 | Patch available | GHSA-cr7q-2w66-hjcm |
- run-llama/llama_index Vendorrun-llama Affected before v0.13.0 Fixed in v0.13.0 Patch available CNA
- llama-index-core (PyPI) Vendor— Affected before 0.13.0 Fixed in 0.13.0 Patch available GHSA-cr7q-2w66-hjcm
Remediation
- Fix · CNA run-llama/llama_index (run-llama) Fixed in v0.13.0
- Fix · GHSA-cr7q-2w66-hjcm llama-index-core (PyPI) Fixed in 0.13.0 Advisory →
Red Hat 1 advisory
- RHSA-2025:18984 Released 2025-10-22 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Container Release Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/lightspeed-chatbot-rhel8, ansible-automation-platform-25/lightspeed-rhel8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | Fixed | RHSA-2025:18984 |
Not affected: 3 products
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Red Hat Ansible Automation Platform 2.5 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-7647
- 2026-10-03 Alias added: GHSA-cr7q-2w66-hjcm
References
More run-llama 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-02902 Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index CVSS 3.0CRITICAL 9.8
Sources
- CVE-2025-7647 · CVE Program
- CVE-2025-7647 · NVD
- FIRST EPSS
- GHSA-cr7q-2w66-hjcm · GitHub Advisory Database · CC BY 4.0
- CVE-2025-7647 · 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