Skip to main content
CVE-2025-7647VulnerabilityPublished Updated

CVE-2025-7647: run-llama/llama_index · Creation of Temporary File With Insecure Permissions

Affects run-llama/llama_indexSource CVE Database V5

0

Not known to be exploited · CVSS 7.3 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.0 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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-25.

What to do

Affected software

ProductAffectedFixed in
run-llama run-llama/llama_indexAffected
  • <=0.12.44
Fixed in–

AI-suggested

To mitigate CVE-2025-7647, organizations should first upgrade to a patched version of the llama-index-core package once available. Until then, administrators should implement strict access controls on the /tmp/llama_index directory by setting restrictive permissions (e.g., chmod 700) and ensuring it is owned by the application user to prevent unauthorized access. Employing unique, unpredictable temporary directory names per user or process can reduce the risk of symlink attacks. Running the application in isolated environments such as containers or dedicated virtual machines can limit multi-user exposure. Additionally, monitoring file system changes and access to /tmp/llama_index can help detect suspicious activity. Incorporating mandatory access control (MAC) systems like SELinux or AppArmor to restrict file operations on temporary directories can further harden the environment. Finally, educating developers to avoid hardcoded temporary paths and to use secure temporary file APIs (e.g., mkdtemp) will prevent recurrence.

Description

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.

References

Community reviews

Loading reviews…