# CVE-2025-7707: PYSEC-2026-1556 - llama-index has Insecure Temporary File

Source: https://junglewise.ai/threats/cve-2025-7707-llama-index-has-insecure-temporary-file  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-13  
License: CC BY 4.0 with a link back

CVE-2025-7707 · Severity: high · CVSS 7.8 · Published 2025-10-13

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.

Technologies: [Llamaindex](https://junglewise.ai/threats/technologies/llamaindex), [llama-index (PyPI)](https://junglewise.ai/threats/technologies/llama-index). Vendors: [Llamaindex](https://junglewise.ai/threats/vendors/llamaindex), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-7707 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-7707 being exploited in the wild.

**How severe is CVE-2025-7707?** High severity, with a CVSS score of 7.8, published 13 October 2025.

**Which products and versions are affected?** llama-index (PyPI) ECOSYSTEM:introduced=0,fixed=0.13.0.

**Is there a fix for CVE-2025-7707?** Yes. llama-index (PyPI): upgrade to 0.13.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-7707?** Check whether you run Llamaindex or llama-index (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- llama-index (PyPI): upgrade to 0.13.0 or later

  ```sh
  pip install "llama-index>=0.13.0"
  ```


## Affected products

- Llamaindex
- llama-index (PyPI) ECOSYSTEM:introduced=0,fixed=0.13.0

## Identifiers

- CVE-2025-7707
- GHSA-rg9h-vx28-xxp5
- PYSEC-2026-1556

## Related threats

- [PYSEC-2026-2606 - LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class](https://junglewise.ai/threats/cve-2025-6211-llamaindex-vulnerable-to-data-loss-through-hash-collisions-in-its)
- [PYSEC-2026-1558 - LlamaIndex vulnerable to Path Traversal attack through its encode_image function](https://junglewise.ai/threats/cve-2025-6209-llamaindex-path-traversal-in-encode-image-function)
- [PYSEC-2026-1559 - LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing](https://junglewise.ai/threats/cve-2025-5472-llamaindex-vulnerable-to-dos-attack-through-uncontrolled-recursive)
- [PYSEC-2026-1567 - LlamaIndex vulnerability in its ObsidianReader class can lead to Path Traversal exploit](https://junglewise.ai/threats/cve-2025-6210-llamaindex-obsidianreader-path-traversal-via-hardlinks)
- [PYSEC-2026-1568 - LlamaIndex is vulnerable to Path Traversal attack through its ObsidianReader class](https://junglewise.ai/threats/cve-2025-3046-llamaindex-is-vulnerable-to-path-traversal-attack-through-its)
