{"id":"CVE-2025-7647","aliases":["CVE-2025-7647","GHSA-cr7q-2w66-hjcm","PYSEC-2026-1562"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure Temporary File Handling in run-llama/llama_index","summary":"The llama-index-core package, up to version 0.12.44, contains a vulnerability in the `get_cache_dir()` function where a predictable, hardcoded directory path `/tmp/llama_index` is used on Linux systems without proper security controls. This vulnerability allows attackers on multi-user systems to steal proprietary models, poison cached embeddings, or conduct symlink attacks. The issue affects all Linux deployments where multiple users share the same system. The vulnerability is classified under CWE-379, CWE-377, and CWE-367, indicating insecure temporary file creation and potential race conditions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The llama-index-core package, up to version 0.12.44, contains a vulnerability in the `get_cache_dir()` function where a predictable, hardcoded directory path `/tmp/llama_index` is used on Linux systems without proper security controls. This vulnerability allows attackers on multi-user systems to steal proprietary models, poison cached embeddings, or conduct symlink attacks. The issue affects all Linux deployments where multiple users share the same system. The vulnerability is classified under CWE-379, CWE-377, and CWE-367, indicating insecure temporary file creation and potential race conditions.","source":"cvelist"},{"lang":"es","text":"El paquete llama-index-core, hasta la versión 0.12.44, contiene una vulnerabilidad en la función 'get_cache_dir()' donde se utiliza una ruta de directorio predecible y codificada de forma rígida '/tmp/llama_index' en sistemas Linux sin los controles de seguridad adecuados. Esta vulnerabilidad permite a los atacantes en sistemas multiusuario robar modelos propietarios, envenenar incrustaciones en caché o realizar ataques de symlink. El problema afecta a todas las implementaciones de Linux donde múltiples usuarios comparten el mismo sistema. La vulnerabilidad se clasifica bajo CWE-379, CWE-377 y CWE-367, indicando la creación insegura de archivos temporales y posibles condiciones de carrera.","source":"nvd"}],"published":"2025-09-27T16:34:36.938Z","modified":"2026-10-09T10:10:00.193Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-378"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"v0.13.0","status":"affected"}],"vendor":"run-llama","product":"run-llama/llama_index","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.13.0"}],"ecosystem":"PyPI","package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.13.0"}],"ecosystem":"PyPI","package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/a2baa08f-98bf-47a8-ac83-06f7411afd9e","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/run-llama/llama_index/commit/98816394d57c7f53f847ed7b60725e69d0e7aae4","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7647","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/run-llama/llama_index","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/llama-index-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cr7q-2w66-hjcm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-09-29T19:26:13.766Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-7647","url":"https://www.cve.org/CVERecord?id=CVE-2025-7647","licence":"CVE Terms of Use","modified":"2025-09-29T19:26:26.135Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cr7q-2w66-hjcm","url":"https://github.com/advisories/GHSA-cr7q-2w66-hjcm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:28.289Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-7647","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7647","licence":"Public domain","modified":"2026-10-09T10:10:00.193Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1562","url":"https://osv.dev/vulnerability/PYSEC-2026-1562","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:15.164Z"}],"updatedAt":"2026-11-25T22:59:05.275Z","epss":{"score":0.00149,"percentile":0.04339,"date":"2026-12-01T12:00:22.000Z"}}