{"cve":"CVE-2025-6209","nvd":{"published":"2025-07-07T13:15:28.823","modified":"2026-06-17T10:01:23.420","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-29"],"references":["https://github.com/run-llama/llama_index/commit/cdeaab91a204d1c3527f177dac37390327aef274","https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68","https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68"],"products":["llamaindex:llamaindex"],"source":"nvd","synced_at":"2026-10-19T22:04:28.436527499+00:00"},"epss":{"cve":"CVE-2025-6209","score":0.00621,"percentile":0.49789,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2rhq-96q8-4vjq","url":"https://osv.dev/vulnerability/GHSA-2rhq-96q8-4vjq","summary":"LlamaIndex vulnerable to Path Traversal attack through its encode_image function","modified":"2026-07-07T17:56:51.353114584Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":[">=0.11.23 <0.12.41"],"fixed":["0.12.41"]}]},{"id":"PYSEC-2025-65","url":"https://osv.dev/vulnerability/PYSEC-2025-65","summary":"","modified":"2026-07-07T17:56:51.353114584Z","packages":[{"ecosystem":"PyPI","name":"llama-index","purl":"pkg:pypi/llama-index","ranges":[">=0.12.27 <0.12.41"],"fixed":["0.12.41"]}]},{"id":"PYSEC-2026-1558","url":"https://osv.dev/vulnerability/PYSEC-2026-1558","summary":"LlamaIndex vulnerable to Path Traversal attack through its encode_image function","modified":"2026-07-07T17:56:51.353114584Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":[">=0.11.23 <0.12.41"],"fixed":["0.12.41"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}