run-llama llama_index up to 0.12.x on Linux /tmp/llama_index get_cache_dir temp file
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.2 | $0-$5k | 0.00 |
Summary
A vulnerability categorized as problematic has been discovered in run-llama llama_index up to 0.12.x on Linux. This vulnerability affects the function get_cache_dir of the file /tmp/llama_index. The manipulation results in temp file.
This vulnerability was named CVE-2025-7647. The attack needs to be approached locally. There is no available exploit.
It is advisable to upgrade the affected component.
Details
A vulnerability, which was classified as problematic, was found in run-llama llama_index up to 0.12.x on Linux. Affected is the function get_cache_dir of the file /tmp/llama_index. The manipulation with an unknown input leads to a temp file vulnerability. CWE is classifying the issue as CWE-378. Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at huntr.com. This vulnerability is traded as CVE-2025-7647 since 07/14/2025. The exploitability is told to be easy. The attack needs to be approached locally. There are known technical details, but no exploit is available.
Upgrading to version 0.13.0 eliminates this vulnerability. Applying the patch 98816394d57c7f53f847ed7b60725e69d0e7aae4 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2025-31429). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.3VulDB Meta Temp Score: 6.2
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.3
CNA Vector (@huntr_ai): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Temp fileCWE: CWE-378 / CWE-377
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: llama_index 0.13.0
Patch: 98816394d57c7f53f847ed7b60725e69d0e7aae4
Timeline
07/14/2025 CVE reserved09/27/2025 Advisory disclosed
09/27/2025 VulDB entry created
09/27/2025 VulDB entry last update
Sources
Product: github.comAdvisory: huntr.com
Status: Confirmed
CVE: CVE-2025-7647 (🔒)
GCVE (CVE): GCVE-0-2025-7647
GCVE (VulDB): GCVE-100-326208
EUVD: 🔒
Entry
Created: 09/27/2025 20:08Updated: 09/27/2025 21:26
Changes: 09/27/2025 20:08 (67), 09/27/2025 21:26 (1)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.