{"id":"CVE-2025-6209","published":"2025-07-07T12:21:10Z","modified":"2025-07-07T13:45:55Z","title":"Arbitrary File Read through Path Traversal in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"A path traversal vulnerability exists in run-llama/llama_index versions 0.12.27 through 0.12.40, specifically within the `encode_image` function in `generic_utils.py`. This vulnerability allows an attacker to manipulate the `image_path` input to read arbitrary files on the server, including sensitive system files. The issue arises due to improper validation or sanitization of the file path, enabling path traversal sequences to access files outside the intended directory. The vulnerability is fixed in version 0.12.41.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00621,"percentile":0.50706,"provenance":"source"},"cwes":[{"id":"CWE-29","name":"Path Traversal: '..filename'"}],"references":[{"url":"https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/cdeaab91a204d1c3527f177dac37390327aef274","tags":[]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.14},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.12.41"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-07T13:45:44.434139Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-core","vulnerableRanges":[">=0.11.23, <0.12.41"],"patched":["0.12.41"],"from":["GHSA-2rhq-96q8-4vjq","PYSEC-2026-1558"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":[">=0.12.27, <0.12.41"],"patched":["0.12.41"],"from":["PYSEC-2025-65"],"provenance":"source"}],"summary":{"text":"The run-llama/llama_index library contains a path traversal flaw in the encode_image function in generic_utils.py, where the image_path input is not properly validated or sanitised before being used to access files. An attacker who can reach the affected code over the network, without authentication or user interaction, can supply path traversal sequences to read arbitrary files on the server, including sensitive system files outside the intended directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:25Z"},"euvd":{"id":"EUVD-2025-20223","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-3225","published":"2025-07-07","fixed":"0.12.29","kev":false},{"cve":"CVE-2025-5472","published":"2025-07-07","fixed":"0.12.38","kev":false,"link":{"from":"CVE-2025-5472","to":"CVE-2025-6209","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":0}]}},{"cve":"CVE-2025-3108","published":"2025-07-06","fixed":"0.12.41","kev":false},{"cve":"CVE-2025-6209","published":"2025-07-07","fixed":"0.12.41","kev":false},{"cve":"CVE-2025-6211","published":"2025-07-10","fixed":"0.12.41","kev":false},{"cve":"CVE-2025-7707","published":"2025-10-13","fixed":"0.13.0","kev":false}],"package":"PyPI:llama-index"}}