CVE-2025-6210
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.
How to fix
- llamaindex llamaindex0.5.2 or later
- llama-index-readers-obsidian0.5.2 or later
- llama-index0.5.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| llamaindex llamaindex | v < 0.5.2 | 0.5.2 |
| llama-index-readers-obsidianPyPI | v < 0.5.2 | 0.5.2 |
| llama-indexPyPI | v < 0.5.2 | 0.5.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.