{"id":"CVE-2025-6210","published":"2025-07-07T09:55:46Z","modified":"2025-07-07T12:17:09Z","title":"Hardlink-Based Path Traversal in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00334,"percentile":0.27445,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/a654b322-a509-4448-a1f5-0f22850b4687","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/a86c96ae0e662492eeb471b658ae849a93f628ff","tags":[]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":5.49},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.5.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-07T12:15:08.524689Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-readers-obsidian","vulnerableRanges":["<0.5.2"],"patched":["0.5.2"],"from":["GHSA-3j8r-jf9w-5cmh","PYSEC-2026-1567"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":["<0.5.2"],"patched":["0.5.2"],"from":["PYSEC-2025-252"],"provenance":"source"}],"summary":{"text":"A path traversal flaw exists in the ObsidianReader class of the run-llama/llama_index repository, where the load_data() method fails to distinguish real files from hardlinks during its security checks. An attacker with local access and no privileges or user interaction can use hardlinks to bypass path restrictions and read sensitive system files such as /etc/passwd.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:19Z"},"euvd":{"id":"EUVD-2025-20210","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-run-llama-llama-index-cve-2025-3046","parents":[{"from":"CVE-2025-3046","to":"CVE-2025-6210","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-readers-obsidian","fromFixed":"0.5.1","toFixed":"0.5.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["llama-index-integrations/readers/llama-index-readers-obsidian/llama_index/readers/obsidian/base.py"],"commits":["https://github.com/run-llama/llama_index/commit/0008041e8dde8e519621388e5d6f558bde6ef42e","https://github.com/run-llama/llama_index/commit/266eb3b3a61f158112726d75a5f5f0b90e34ded0","https://github.com/run-llama/llama_index/commit/a86c96ae0e662492eeb471b658ae849a93f628ff"],"basis":"shared function","functions":["load_data"]},{"kind":"similar","provenance":"machine","score":0.25,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-3046","published":"2025-07-07","fixed":"0.5.1","kev":false},{"cve":"CVE-2025-6210","published":"2025-07-07","fixed":"0.5.2","kev":false}],"package":"PyPI:llama-index-readers-obsidian"}}