---
id: CVE-2025-3046
aliases:
  - GHSA-fmrf-6jv9-qjc7
  - PYSEC-2026-1568
title: >-
  LlamaIndex is vulnerable to Path Traversal attack through its ObsidianReader
  class
summary: >-
  LlamaIndex is vulnerable to Path Traversal attack through its ObsidianReader
  class
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: llama-index-readers-obsidian
product: llama-index-readers-obsidian
ecosystem: pip
affected:
  - llama-index-readers-obsidian < 0.5.1
patched:
  - llama-index-readers-obsidian 0.5.1
published: '2025-07-07'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fmrf-6jv9-qjc7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-3046'
  - url: 'https://github.com/run-llama/llama_index/pull/18320'
  - url: >-
      https://github.com/run-llama/llama_index/commit/0008041e8dde8e519621388e5d6f558bde6ef42e
  - url: >-
      https://github.com/run-llama/llama_index/commit/266eb3b3a61f158112726d75a5f5f0b90e34ded0
  - url: 'https://github.com/run-llama/llama_index'
  - url: 'https://huntr.com/bounties/90a1f1b2-bb82-4d66-9fc1-856ed5f904da'
tags:
  - osv
  - pip
epss: 0.00559
epssPercentile: 0.45386
ingestedAt: '2026-07-08T18:25:48.947Z'
---

## Overview

A vulnerability in the `ObsidianReader` class in LlamaIndex Readers Integration: Obsidian before version 0.5.1 from 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 packages

- `llama-index-readers-obsidian < 0.5.1`

## Remediation

Upgrade to a patched release:

- `llama-index-readers-obsidian 0.5.1`
