CVE-2025-6210
JSON

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 packageVersionsReported by
run-llama run-llama/llama_indexfrom unspecified before 0.5.2CVE List
llama-index-readers-obsidian (PyPI)before 0.5.2GitHub Advisory Database, PyPA Advisory Database
llamaindex llamaindexbefore 0.5.2NVD
llama-index (PyPI)before 0.5.2PyPA Advisory Database

All scores

@huntr_ai6.2medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub6.2medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database6.2medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2025-6210 changed 2025-07-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-3j8r-jf9w-5cmh changed 2026-07-13CC-BY-4.0
NVDCVE-2025-6210 changed 2026-10-18Public domain
PyPA Advisory DatabasePYSEC-2025-252 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-1567 changed 2026-07-13CC-BY-4.0