Loading advisory.
Loading advisory.
LlamaIndex vulnerable to Path Traversal attack through its encode_image function
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.
Published 2025-07-07 12:21 UTC · Modified 2026-07-07 17:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| llama-index-core | PyPI | >= 0.11.23, < 0.12.41 versions 0.11.23, 0.12.0, 0.12.1, 0.12.10, 0.12.10.post1, 0.12.11, 0.12.12, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.12.16.post1, 0.12.17, 0.12.18, 0.12.19, 0.12.2, 0.12.20, 0.12.21, 0.12.22, 0.12.23 and 37 more | 0.12.41 | pip install --upgrade 'llama-index-core>=0.12.41' |
| llama-index | PyPI | git commits in https://github.com/run-llama/llama_index: < cdeaab91a204d1c3527f177dac37390327aef274 >= 0.12.27, < 0.12.41 versions 0.12.27, 0.12.28, 0.12.29, 0.12.30, 0.12.31, 0.12.32, 0.12.33, 0.12.34, 0.12.35, 0.12.36, 0.12.37, 0.12.38, 0.12.39, 0.12.40 | cdeaab91a204d1c3527f177dac37390327aef274, 0.12.41 | pip install --upgrade 'llama-index>=cdeaab91a204d1c3527f177dac37390327aef274'pip install --upgrade 'llama-index>=0.12.41' |
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.009 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.009 | 0.006 | v2026.06.15 |