CVE-2025-7647 json
Insecure Temporary File Handling in run-llama/llama_index
published 2025-09-27 13 mo ago modified 2026-10-09 30 d ago also GHSA-cr7q-2w66-hjcm , PYSEC-2026-1562 , EUVD-2025-31429
- cvss
- 7.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi llama-index-core 0.13.0
- run-llama run-llama/llama_index v0.13.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-7647 updated cvss 8.4
llama-index-core: Insecure Temporary File Handling in run-llama/llama_index
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9affected: no fix available
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/lightspeed-chatbot-rhel8 2.5.250924-3fixed: vendor fix RHSA-2025:18984
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, ansible-automation-platform-24/ee-minimal-rhel9, +18 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/hub-rhel8 4.10.9-1, ansible-automation-platform-25/hub-web-rhel8 4.10.9-1, ansible-automation-platform-25/receptor-rhel8 1.6.0-1, ansible-automation-platform-25/de-minimal-rhel8 1.1.7-14, ansible-automation-platform-25/controller-rhel8 4.6.21-13, ansible-automation-platform-25/ee-minimal-rhel8 1.0.0-982, +26 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-automation-platform-25/de-minimal-rhel9 1.1.7-15, ansible-automation-platform-25/ee-minimal-rhel9 1.0.0-983, ansible-automation-platform-25/de-supported-rhel9 1.1.7-13, ansible-automation-platform-25/ee-supported-rhel9 1.0.0-1108, ansible-automation-platform-25/ansible-builder-rhel9 3.1.0-260, ansible-automation-platform-25/ee-cloud-services-rhel9 1.0.0-316, +2 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| OSV | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| GitHub | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index-core | <0.13.0 |
0.13.0 |
Affected products
- run-llama run-llama/llama_index
Classification
- Weakness
-
- CWE-378 Creation of Temporary File With Insecure Permissions
References
-
github.com
/run-llama/llama_index/commit/98816394d57c7f53f847ed7b60725e69d0e7aae4
web
-
huntr.com
/bounties/a2baa08f-98bf-47a8-ac83-06f7411afd9e
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-7647
advisory
-
github.com
/run-llama/llama_index
package
-
pypi.org
/project/llama-index-core
package
-
github.com
/advisories/GHSA-cr7q-2w66-hjcm
advisory
Sources
- CVE List CVE-2025-7647
- GitHub Advisory GHSA-cr7q-2w66-hjcm
- NVD CVE-2025-7647
- OSV PYSEC-2026-1562
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.