CVE-2025-6210
Hardlink-Based Path Traversal in run-llama/llama_index
- State
- Published
- Severity
- 6.2 Medium
- Published
- Jul 7, 2025
- Updated
- Jul 7, 2025
- Reserved
- Jun 17, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 6.2 Medium | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | @huntr_ai |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
run-llama/llama_indexrun-llama |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.