
Cloud Vulnerability DB
A community-led vulnerabilities database
A path traversal vulnerability was discovered in run-llama/llamaindex versions 0.12.27 through 0.12.40, specifically within the encode_image
function in generic_utils.py
. The vulnerability was disclosed on July 7, 2025, and affects the image processing functionality of the llamaindex library (NVD).
The vulnerability exists in the encode_image
function where improper validation or sanitization of the file path enables path traversal sequences to access files outside the intended directory. The vulnerability has been assigned a CVSS v3.0 base score of 7.5 (HIGH) with the vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility with no required privileges or user interaction (NVD, Huntr).
The vulnerability allows attackers to manipulate the image_path
input to read arbitrary files on the server, including sensitive system files. This could lead to unauthorized access to confidential information stored on the affected system (NVD).
The vulnerability has been fixed in version 0.12.41 of run-llama/llamaindex. Users are advised to upgrade to this version or later. The fix includes proper validation of image paths and URLs to ensure they are accessible and valid images ([Github Commit](https://github.com/run-llama/llamaindex/commit/cdeaab91a204d1c3527f177dac37390327aef274)).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."