Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-6209
July 07, 2025
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.
Affected Packages
llama-index-core (CONDA):
Affected version(s) >=0.12.27 <0.12.41
Fix Suggestion:
Update to version 0.12.41
https://github.com/run-llama/llama_index.git (GITHUB):
Affected version(s) >=v0.12.27 <v0.12.41
Fix Suggestion:
Update to version v0.12.41
llama-index-core (PYTHON):
Affected version(s) >=0.12.27 <0.12.41
Fix Suggestion:
Update to version 0.12.41
llama-index-core (PYTHON):
Affected version(s) >=0.11.23 <0.12.41
Fix Suggestion:
Update to version 0.12.41
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Path Traversal: '..filename'
EPSS
Base Score:
0.08