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

- Severity: Medium 6.2 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-07T09:55:46.893Z
- Modified: 2026-10-18T21:10:00.120Z
- Also known as: GHSA-3j8r-jf9w-5cmh, PYSEC-2025-252, PYSEC-2026-1567
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.5.2
- llama-index-readers-obsidian (PyPI): before 0.5.2
- llamaindex llamaindex: before 0.5.2
- llama-index (PyPI): before 0.5.2

## Every score

- @huntr_ai: CVSS:3.0 6.2 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 6.2 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 6.2 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/a654b322-a509-4448-a1f5-0f22850b4687> (exploit, evidence, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/a86c96ae0e662492eeb471b658ae849a93f628ff> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6210> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-readers-obsidian> (package)
- <https://github.com/advisories/GHSA-3j8r-jf9w-5cmh> (advisory)

## Sources

- CVE List: [CVE-2025-6210](https://www.cve.org/CVERecord?id=CVE-2025-6210), CVE Terms of Use, modified 2025-07-07
- GitHub Advisory Database: [GHSA-3j8r-jf9w-5cmh](https://github.com/advisories/GHSA-3j8r-jf9w-5cmh), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-6210](https://nvd.nist.gov/vuln/detail/CVE-2025-6210), Public domain, modified 2026-10-18
- PyPA Advisory Database: [PYSEC-2025-252](https://osv.dev/vulnerability/PYSEC-2025-252), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-1567](https://osv.dev/vulnerability/PYSEC-2026-1567), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-6210 · Whole record: https://cve.day/CVE-2025-6210.json · Rebuilt by cve.day 2026-11-25T22:59:00.719Z
