CVE-2025-6209
highpriority · track · 0EPSS 0.006 · 50 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-2rhq-96q8-4vjqLlamaIndex vulnerable to Path Traversal attack through its encode_image function2025-07-07ghsa · osvUS
A path traversal vulnerability exists in run-llama/llama_index versions 0.11.23 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.
- PYSEC-2025-652025-07-07vendor · osvUS
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.
- PYSEC-2026-1558LlamaIndex vulnerable to Path Traversal attack through its encode_image function2026-07-07vendor · osvUS
A path traversal vulnerability exists in run-llama/llama_index versions 0.11.23 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.
also known as (9)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-6209cnnvd
- https://github.com/run-llama/llama_index/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-6209cnnvd
- https://github.com/run-llama/llama_index/commit/cdeaab91a204d1c3527f177dac37390327aef274enisa_euvd
- https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68enisa_euvd
- https://github.com/run-llama/llama_index/commit/cdeaab91a204d1c3527f177dac37390327aef274Patchnvd
- https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan