CVE-2025-7647 Insecure Temporary File Handling in run-llama/llama_index

High 7.3 Published Updated

Attackers on multi-user Linux systems can steal models or poison embeddings via insecure temporary file handling in llama_index.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-7647?

CVE-2025-7647 is a high-severity path traversal vulnerability in run-llama/llama_index, published on 27 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-378

Which versions are affected by CVE-2025-7647?

3 open source packages ship an affected version, including llama-index-core.

PackageAffectedFixed in
llama-index-core PyPIAll versions0.13.0
llama-index-core PyPIAll versions0.13.0
llama-index-core PyPIAll versions0.13.0

How do I fix CVE-2025-7647?

Upgrade llama-index-core to 0.13.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-7647 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7647 exists.

Sources

Also known as GHSA-cr7q-2w66-hjcm, PYSEC-2026-1562.

Is CVE-2025-7647 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free