Advisory

PYSEC-2025-65

Also known as: CVE-2025-6209, GHSA-2rhq-96q8-4vjq, PYSEC-2026-1558

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-07-07 13:15 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

llama-index

PyPI · All systems

Affected

  • introduced 0.12.27, fixed 0.12.41 (ecosystem)

Fixed versions

0.12.41

Fix

  • Fixed version 0.12.41
    pip install --upgrade llama-index==0.12.41

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences