# CVE-2025-6208: Uncontrolled Memory Consumption in run-llama/llama_index

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-02-02T10:36:23.033Z
- Modified: 2026-07-07T17:56:05.561Z
- Also known as: GHSA-488g-hw5f-x29p, PYSEC-2026-1560
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.12.41
- llama-index-core (PyPI): before 0.12.41

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://huntr.com/bounties/7d722bb6-6567-4608-8b23-f95048d7605a> (web)
- <https://github.com/run-llama/llama_index/commit/53614e2f7913c0e86b58add9470b3c900b6c60b2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6208> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-core> (package)
- <https://github.com/advisories/GHSA-488g-hw5f-x29p> (advisory)

## Sources

- CVE List: [CVE-2025-6208](https://www.cve.org/CVERecord?id=CVE-2025-6208), CVE Terms of Use, modified 2026-02-02
- GitHub Advisory Database: [GHSA-488g-hw5f-x29p](https://github.com/advisories/GHSA-488g-hw5f-x29p), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-6208](https://nvd.nist.gov/vuln/detail/CVE-2025-6208), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1560](https://osv.dev/vulnerability/PYSEC-2026-1560), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-6208 · Whole record: https://cve.day/CVE-2025-6208.json · Rebuilt by cve.day 2026-11-25T22:59:10.971Z
