Creation of Temporary File With Insecure Permissions Affecting llama-index-core package, versions [0, 0.12.50)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.13% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-LLAMAINDEXCORE-13110240
  • published29 Sept 2025
  • disclosed27 Sept 2025
  • creditUnknown

Introduced: 27 Sep 2025

CVE-2025-7647  (opens in a new tab)
CWE-378  (opens in a new tab)

How to fix?

Upgrade llama-index-core to version 0.12.50 or higher.

Overview

llama-index-core is an Interface between LLMs and your data

Affected versions of this package are vulnerable to Creation of Temporary File With Insecure Permissions via the get_cache_dir function, which uses a predictable and hardcoded directory path /tmp/llama_index without proper security controls. An attacker can access or manipulate sensitive files by exploiting this predictable path, potentially stealing proprietary models, poisoning cached embeddings, or conducting symlink attacks.

Note: This is only exploitable if multiple users share the same Linux system.

References

CVSS Base Scores

version 4.0
version 3.1