Browse / AI Framework and Platform Flaws / CVE-2025-7707
llama-index has Insecure Temporary File
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Other weaknesses
- Affected
- llama-index (PyPI)
- CVSS
- CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- EPSS
- 0.2% chance of exploitation in 30 days
How it works, in short
A shared, world-writable NLTK data directory lets local users replace or corrupt files that the library later loads. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-7707
- https://github.com/run-llama/llama_index/commit/98816394d57c7f53f847ed7b60725e69d0e7aae4
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/3fe2c8ab-6727-4aef-a0ef-4d2818e48803
Source: GitHub Advisory Database, used under CC BY 4.0.