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.02% (3rd 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 Learn

Learn about Creation of Temporary File With Insecure Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMAINDEXCORE-13110240
  • published29 Sept 2025
  • disclosed27 Sept 2025
  • creditUnknown

Introduced: 27 Sep 2025

NewCVE-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