CVE-2025-6209
Last modified
CVE-2025-6209 is a vulnerability of currently unknown severity. 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. EPSS estimates a 0.55% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Llamaindex | Llamaindex | >= 0.12.27, < 0.12.41 |
References
- https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68Exploit, Third Party Advisory
- https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-6209?
How severe is CVE-2025-6209?
How do I fix CVE-2025-6209?
Are you affected by CVE-2025-6209?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
