Skip to content
OpenAdvisories
High · 7.5 CVE-2025-3046 EUVD-2025-20216GHSA-fmrf-6jv9-qjc7PYSEC-2025-248PYSEC-2026-1568

Path Traversal via Symbolic Links in run-llama/llama_index

Published Jul 7, 2025 · Updated Jul 7, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < 0.12.28 0.12.28

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index >= 0.12.23, < 0.12.28 0.12.28 PYSEC-2025-248
PyPI llama-index-readers-obsidian < 0.5.1 0.5.1 GHSA-fmrf-6jv9-qjc7

References