VDB
Sign up
HIGH7.5

PYSEC-2025-248

Quick fix

PYSEC-2025-248 — llama-index: upgrade to the fixed version with the command below.

pip install --upgrade 'llama-index>=0.12.28'

Details

A vulnerability in the `ObsidianReader` class of the run-llama/llama_index repository, versions 0.12.23 to 0.12.28, allows for arbitrary file read through symbolic links. The `ObsidianReader` fails to resolve symlinks to their real paths and does not validate whether the resolved paths lie within the intended directory. This flaw enables attackers to place symlinks pointing to files outside the vault directory, which are then processed as valid Markdown files, potentially exposing sensitive information.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/llama-index
Introduced in: 0.12.23Fixed in: 0.12.28
Fixpip install --upgrade 'llama-index>=0.12.28'

References