CVE-2025-6208
JSON

5.3medium

Uncontrolled Memory Consumption in run-llama/llama_index

Severity
5.3medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-488g-hw5f-x29pPYSEC-2026-1560

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.

Affected

Product or packageVersionsReported by
run-llama run-llama/llama_indexfrom unspecified before 0.12.41CVE List
llama-index-core (PyPI)before 0.12.41GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
PyPA Advisory Database5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-400

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El componente 'SimpleDirectoryReader' en 'llama_index.core' versión 0.12.23 sufre de consumo de memoria descontrolado debido a un fallo en la gestión de recursos. La vulnerabilidad surge porque el límite de archivos especificado por el usuario ('num_files_limit') se aplica después de que todos los archivos de un directorio se cargan en la memoria. Esto puede provocar el agotamiento de la memoria y un rendimiento degradado, particularmente en entornos con recursos limitados. El problema se resuelve en la versión 0.12.41.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-6208 changed 2026-02-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-488g-hw5f-x29p changed 2026-07-07CC-BY-4.0
NVDCVE-2025-6208 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1560 changed 2026-07-07CC-BY-4.0