Skip to content
Heist/ feed
Back to feed
High

Path Traversal via Symbolic Links in run-llama/llama_index

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-3046
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 05:54 UTC · Revision 1

Source evidence

Path Traversal via Symbolic Links in run-llama/llama_index

core-osv · Original source

Published 7 Jul 2025, 09:54 UTC

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.

osv:CVE-2025-3046
Complete source record
{
  "id": "052c7d1b38d81cc90f6d840ed04ac2b79f44aae7c84e1591695b540974fa4699",
  "url": "https://osv.dev/vulnerability/CVE-2025-3046",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path Traversal via Symbolic Links in run-llama/llama_index",
    "summary": "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.",
    "evidence": "osv:CVE-2025-3046",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-3046",
      "aliases": [
        "CVE-2025-3046",
        "GHSA-fmrf-6jv9-qjc7",
        "PYSEC-2025-248",
        "PYSEC-2026-1568"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/run-llama/llama_index",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4c8d1d671ef30e831df17334211333404c421ce2"
                },
                {
                  "fixed": "0008041e8dde8e519621388e5d6f558bde6ef42e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.12.28"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "SplitRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0008041e8dde8e519621388e5d6f558bde6ef42e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.12.23"
                      },
                      {
                        "fixed": "0.12.28"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.12.27",
            "v0.12.26",
            "v0.12.25",
            "v0.12.24.post2",
            "v0.12.24.post1",
            "v0.12.24",
            "v0.12.23"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-3046.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.167295765Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/90a1f1b2-bb82-4d66-9fc1-856ed5f904da",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3046.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-3046",
        "https://github.com/run-llama/llama_index/commit/0008041e8dde8e519621388e5d6f558bde6ef42e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3046.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-3046",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492870,
  "published_at": "2025-07-07T09:54:50.409+00:00"
}