CVE-2025-7707
7.1LlamaIndex · llama_index
The llama_index library incorrectly defaults to a world-writable NLTK data directory, allowing local users to perform data tampering or trigger a denial of service.
Executive summary
An insecure file configuration in the llama_index library allows local users to tamper with NLTK data, creating a risk of data corruption or service disruption.
Vulnerability
The library utilizes a world-writable subdirectory within the codebase to store NLTK data. This insecure configuration allows any local user with low privileges to overwrite or delete critical data files.
Business impact
The ability for local users to modify application data can lead to significant integrity compromises and service instability. Given the CVSS score of 7.1, this vulnerability poses a high risk in multi-user environments where local access is shared. Successful exploitation could result in unauthorized data modification or a complete denial of service for the affected application components.
Remediation
Immediate Action: Update the llama_index package to version 0.13.0 or later to ensure NLTK data is stored in a secure, user-specific directory.
Proactive Monitoring: Monitor local file system access logs for unauthorized write attempts to the library directory structure.
Compensating Controls: Restrict permissions on the codebase directory to prevent unauthorized users from modifying files within the application path.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
This vulnerability represents a significant security oversight regarding local file integrity. System administrators must prioritize updating the llama_index library to the fixed version to eliminate the insecure default configuration. Failure to patch allows any local user to compromise the integrity of the NLTK data, which may lead to downstream application errors or malicious manipulation of processed data.