Bug 2376808 (CVE-2025-6209) - CVE-2025-6209 llama-index: File Read through Path Traversal in llama_index
Summary: CVE-2025-6209 llama-index: File Read through Path Traversal in llama_index
Keywords:
Status: NEW
Alias: CVE-2025-6209
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-07 13:01 UTC by OSIDB Bzimport
Modified: 2025-12-15 22:22 UTC (History)
33 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-07 13:01:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.