6.2medium
Hardlink-Based Path Traversal in run-llama/llama_index
- Severity
- 6.2medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-3j8r-jf9w-5cmhPYSEC-2025-252PYSEC-2026-1567
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| run-llama run-llama/llama_index | from unspecified before 0.5.2 | CVE List |
| llama-index-readers-obsidian (PyPI) | before 0.5.2 | GitHub Advisory Database, PyPA Advisory Database |
| llamaindex llamaindex | before 0.5.2 | NVD |
| llama-index (PyPI) | before 0.5.2 | PyPA Advisory Database |
All scores
| @huntr_ai | 6.2medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.2medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.2medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
A vulnerability in the ObsidianReader class of the run-llama/llama_index repository, before version 0.5.2 (specifically in version 0.12.27 of llama-index), 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 llama-index-readers-obsidian version 0.5.2.
NVD (es)
Una vulnerabilidad en la clase ObsidianReader del repositorio run-llama/llama_index, específicamente en la versión 0.12.27, permite un salto de ruta basado en enlaces duros. Esta falla permite a los atacantes eludir las restricciones de ruta y acceder a archivos sensibles del sistema, como /etc/p4ssd, explotando enlaces duros. La vulnerabilidad surge de un manejo inadecuado de los enlaces duros en el método load_data(), donde las comprobaciones de seguridad no logran diferenciar entre archivos reales y enlaces duros. Este problema se resuelve en la versión 0.5.2.
References
| https://huntr.com/bounties/a654b322-a509-4448-a1f5-0f22850b4687 | evidence, exploit, 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-6210 changed 2025-07-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3j8r-jf9w-5cmh changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2025-6210 changed 2026-10-18 | Public domain |
| PyPA Advisory Database | PYSEC-2025-252 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-1567 changed 2026-07-13 | CC-BY-4.0 |