{"id":"CVE-2025-6208","aliases":["EUVD-2025-206599","GHSA-488g-hw5f-x29p","PYSEC-2026-1560"],"status":"published","title":"Uncontrolled Memory Consumption in run-llama/llama_index","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.","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00415,"percentile":0.3622,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2026-02-02T10:36:23Z","modified":"2026-10-28T02:30:32Z","fixes":[{"ecosystem":"PyPI","package":"llama-index-core","fixed_in":["0.12.41"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"llama-index-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.41"}]}]},{"source":"osv","ecosystem":"PyPI","package":"llama-index-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.41"}]}],"versions":["0.10.0","0.10.1","0.10.10","0.10.11","0.10.11.post1","0.10.12","0.10.13","0.10.14","0.10.14.post1","0.10.15","0.10.16","0.10.16.post1","0.10.17","0.10.18","0.10.18.post1","0.10.19","0.10.2","0.10.20","0.10.20.post1","0.10.20.post2","0.10.20.post3","0.10.21","0.10.21.post1","0.10.22","0.10.23","0.10.23.post1","0.10.24","0.10.24.post1","0.10.24a1","0.10.25","0.10.25.post1","0.10.25.post2","0.10.25.post3","0.10.25a1","0.10.26","0.10.27","0.10.28","0.10.29","0.10.3","0.10.30","0.10.31","0.10.32","0.10.33","0.10.34","0.10.35","0.10.35.post1","0.10.36","0.10.37","0.10.37.post1","0.10.38","0.10.38.post1","0.10.38.post2","0.10.39","0.10.39.post1","0.10.40","0.10.41","0.10.42","0.10.43","0.10.43.post1","0.10.44","0.10.45","0.10.46","0.10.47","0.10.48","0.10.48.post1","0.10.49","0.10.5","0.10.50","0.10.50.post1","0.10.51","0.10.52","0.10.52.post1","0.10.52.post2","0.10.53","0.10.53.post1","0.10.54","0.10.54.post1","0.10.55","0.10.56","0.10.57","0.10.58","0.10.59","0.10.59a1","0.10.59a2","0.10.5a1","0.10.5a10","0.10.5a2","0.10.5a3","0.10.5a4","0.10.5a5","0.10.5a6","0.10.5a7","0.10.5a8","0.10.5a9","0.10.6","0.10.6.post1","0.10.60","0.10.61","0.10.62","0.10.63","0.10.64","0.10.65","0.10.66","0.10.67","0.10.68","0.10.68.post1","0.10.7","0.10.8","0.10.8.post1","0.10.9","0.11.0","0.11.0.post1","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.13.post1","0.11.14","0.11.15","0.11.16","0.11.17","0.11.18","0.11.19","0.11.2","0.11.20","0.11.21","0.11.22","0.11.23","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12.0","0.12.1","0.12.10","0.12.10.post1","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.16.post1","0.12.17","0.12.18","0.12.19","0.12.2","0.12.20","0.12.21","0.12.22","0.12.23","0.12.23.post1","0.12.23.post2","0.12.24","0.12.24.post1","0.12.25","0.12.26","0.12.27","0.12.27a1","0.12.27a2","0.12.27a3","0.12.28","0.12.29","0.12.3","0.12.30","0.12.31","0.12.32","0.12.33","0.12.33.post1","0.12.34","0.12.34.post1","0.12.34a1","0.12.34a2","0.12.34a3","0.12.34a4","0.12.34a5","0.12.35","0.12.36","0.12.37","0.12.38","0.12.39","0.12.4","0.12.40","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.9.41","0.9.42","0.9.42.post3","0.9.43","0.9.44","0.9.44.post1","0.9.44.post2","0.9.44.post3","0.9.45","0.9.46","0.9.47","0.9.48","0.9.49","0.9.50","0.9.50.post1","0.9.51","0.9.52","0.9.53","0.9.54","0.9.55","0.9.56"]},{"source":"osv","ecosystem":"PyPI","package":"llama-index-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.41"}]}],"versions":["0.10.0","0.10.1","0.10.10","0.10.11","0.10.11.post1","0.10.12","0.10.13","0.10.14","0.10.14.post1","0.10.15","0.10.16","0.10.16.post1","0.10.17","0.10.18","0.10.18.post1","0.10.19","0.10.2","0.10.20","0.10.20.post1","0.10.20.post2","0.10.20.post3","0.10.21","0.10.21.post1","0.10.22","0.10.23","0.10.23.post1","0.10.24","0.10.24.post1","0.10.24a1","0.10.25","0.10.25.post1","0.10.25.post2","0.10.25.post3","0.10.25a1","0.10.26","0.10.27","0.10.28","0.10.29","0.10.3","0.10.30","0.10.31","0.10.32","0.10.33","0.10.34","0.10.35","0.10.35.post1","0.10.36","0.10.37","0.10.37.post1","0.10.38","0.10.38.post1","0.10.38.post2","0.10.39","0.10.39.post1","0.10.40","0.10.41","0.10.42","0.10.43","0.10.43.post1","0.10.44","0.10.45","0.10.46","0.10.47","0.10.48","0.10.48.post1","0.10.49","0.10.5","0.10.50","0.10.50.post1","0.10.51","0.10.52","0.10.52.post1","0.10.52.post2","0.10.53","0.10.53.post1","0.10.54","0.10.54.post1","0.10.55","0.10.56","0.10.57","0.10.58","0.10.59","0.10.59a1","0.10.59a2","0.10.5a1","0.10.5a10","0.10.5a2","0.10.5a3","0.10.5a4","0.10.5a5","0.10.5a6","0.10.5a7","0.10.5a8","0.10.5a9","0.10.6","0.10.6.post1","0.10.60","0.10.61","0.10.62","0.10.63","0.10.64","0.10.65","0.10.66","0.10.67","0.10.68","0.10.68.post1","0.10.7","0.10.8","0.10.8.post1","0.10.9","0.11.0","0.11.0.post1","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.13.post1","0.11.14","0.11.15","0.11.16","0.11.17","0.11.18","0.11.19","0.11.2","0.11.20","0.11.21","0.11.22","0.11.23","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12.0","0.12.1","0.12.10","0.12.10.post1","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.16.post1","0.12.17","0.12.18","0.12.19","0.12.2","0.12.20","0.12.21","0.12.22","0.12.23","0.12.23.post1","0.12.23.post2","0.12.24","0.12.24.post1","0.12.25","0.12.26","0.12.27","0.12.27a1","0.12.27a2","0.12.27a3","0.12.28","0.12.29","0.12.3","0.12.30","0.12.31","0.12.32","0.12.33","0.12.33.post1","0.12.34","0.12.34.post1","0.12.34a1","0.12.34a2","0.12.34a3","0.12.34a4","0.12.34a5","0.12.35","0.12.36","0.12.37","0.12.38","0.12.39","0.12.4","0.12.40","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.9.41","0.9.42","0.9.42.post3","0.9.43","0.9.44","0.9.44.post1","0.9.44.post2","0.9.44.post3","0.9.45","0.9.46","0.9.47","0.9.48","0.9.49","0.9.50","0.9.50.post1","0.9.51","0.9.52","0.9.53","0.9.54","0.9.55","0.9.56"]}],"products":[{"vendor":"run-llama","product":"run-llama/llama_index"}],"references":[{"url":"https://huntr.com/bounties/7d722bb6-6567-4608-8b23-f95048d7605a","tags":["web"]},{"url":"https://github.com/run-llama/llama_index/commit/53614e2f7913c0e86b58add9470b3c900b6c60b2","tags":["fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6208","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-488g-hw5f-x29p","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6208.json","tags":["advisory"]},{"url":"https://github.com/run-llama/llama_index","tags":["package"]},{"url":"https://pypi.org/project/llama-index-core","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-6208","title":"Uncontrolled Memory Consumption in run-llama/llama_index","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.","status":"published","published":"2026-02-02T10:36:23.033Z","modified":"2026-02-02T17:46:53.711Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:32:40.419293Z"}],"euvd":[{"id":"EUVD-2025-206599","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.","status":"published","published":"2026-02-02T10:36:23Z","modified":"2026-02-02T17:46:53Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T19:48:45.084164Z"}],"ghsa":[{"id":"GHSA-488g-hw5f-x29p","title":"llama-index-core vulnerable to Uncontrolled Resource Consumption","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.","status":"published","published":"2026-02-02T12:31:14Z","modified":"2026-02-02T22:04:46Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:39:21.558748Z"}],"nvd":[{"id":"CVE-2025-6208","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.","status":"published","published":"2026-02-02T11:16:17.197Z","modified":"2026-06-17T10:01:23.31Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:11:59.832225Z"}],"osv":[{"id":"CVE-2025-6208","title":"Uncontrolled Memory Consumption in run-llama/llama_index","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.","status":"published","published":"2026-02-02T10:36:23.033Z","modified":"2026-10-28T02:30:32.321298535Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:44:51.516975Z"},{"id":"GHSA-488g-hw5f-x29p","title":"llama-index-core vulnerable to Uncontrolled Resource Consumption","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.","status":"published","published":"2026-02-02T12:31:14Z","modified":"2026-07-07T17:56:05.561083177Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:36.782754Z"},{"id":"PYSEC-2026-1560","title":"llama-index-core vulnerable to Uncontrolled Resource Consumption","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.","status":"published","published":"2026-07-07T16:03:21.353538Z","modified":"2026-07-07T17:47:31.636710916Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:55.06457Z"}]}}
