Skip to content
Misconfiguration Disclosed report Intermediate CVE-2025-7707

llama-index has Insecure Temporary File

The llama_index library sets the NLTK data directory to a subdirectory of the codebase by default, which is world-writable in multi-user environments. This allows local users to overwrite, delete, or corrupt NLTK data files, leading to denial of service, data tampering, or privilege escalation.

run-llama/llama_index

Originally disclosed on huntr

The llama_index library version 0.12.33 sets the NLTK data directory to a subdirectory of the codebase by default, which is world-writable in multi-user environments. This configuration allows local users to overwrite, delete, or corrupt NLTK data files, leading to potential denial of service, data tampering, or privilege escalation. The vulnerability arises from the use of a shared cache directory instead of a user-specific one, making it susceptible to local data tampering and denial of service.

From the GitHub Advisory Database (GHSA-rg9h-vx28-xxp5, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the library uses a shared, world-writable cache directory inside the codebase instead of a user-specific directory.

Impact

A local attacker could overwrite, delete, or corrupt NLTK data files, causing denial of service, data tampering, or privilege escalation.

What the attacker needed

Local access to the same system; multi-user environment

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program needs extra data files, it stores them in a folder. Here, that folder is inside the program's own code and can be changed by any user on the same computer. So another user could mess with those files, break the program, or possibly gain more control.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from run-llama/llama_index

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.