CVE-2025-6208 Details
Description
The `SimpleDirectoryReader` component in `llama_index.core` version 0.12.23 suffers from uncontrolled memory consumption due to a resource management flaw. The vulnerability arises because the user-specified file limit (`num_files_limit`) is applied after all files in a directory are loaded into memory. This can lead to memory exhaustion and degraded performance, particularly in environments with limited resources. The issue is resolved in version 0.12.41.
A resource management vulnerability has been identified in the SimpleDirectoryReader component of LlamaIndex, specifically in version 0.12.23. The issue arises from the improper application of user-defined file limits, which are enforced only after all files in a directory have been loaded into memory. This flaw can lead to excessive memory usage and increased CPU consumption, particularly in environments with limited resources. The vulnerability can be exploited by providing directories with a large number of files, causing memory exhaustion and degraded performance.
Users can upgrade to LlamaIndex version 0.12.41 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 2, 2026CISA-ADP
Assessed Feb 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/run-llama/llama_index/commit/53614e2f7913c0e86b58add9470b3c900b6c60b2 | [email protected] | Source CodeVendor |
| https://huntr.com/bounties/7d722bb6-6567-4608-8b23-f95048d7605a | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| run-llama/llama_index | 0.12.23 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 2, 2026 | New CVE Received | [email protected] |
Volerion