Hardlink-Based Path Traversal in run-llama/llama_index
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-6210
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 05:12 UTC · Revision 1
Source evidence
Hardlink-Based Path Traversal in run-llama/llama_index
core-osv · Original sourcePublished 7 Jul 2025, 09:55 UTC
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.
osv:CVE-2025-6210
Complete source record
{
"id": "746fdeb8baa943e54bda2edac58cef1ad429178bcbff2f7f72052bc575788e67",
"url": "https://osv.dev/vulnerability/CVE-2025-6210",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Hardlink-Based Path Traversal in run-llama/llama_index",
"summary": "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.",
"evidence": "osv:CVE-2025-6210",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-6210",
"aliases": [
"CVE-2025-6210",
"GHSA-3j8r-jf9w-5cmh",
"PYSEC-2025-252",
"PYSEC-2026-1567"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/run-llama/llama_index",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "2f5e406be4058a389c4d441f431c31b15bf7c5c6"
},
{
"fixed": "a86c96ae0e662492eeb471b658ae849a93f628ff"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.5.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a86c96ae0e662492eeb471b658ae849a93f628ff"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.12.40",
"v0.12.39",
"v0.12.38",
"v0.12.37",
"v0.12.36",
"v0.12.35",
"v0.12.34.post2",
"v0.12.34.post1",
"v0.12.34",
"v0.12.33",
"v0.12.32",
"v0.12.31",
"v0.12.30",
"v0.12.29",
"v0.12.28",
"v0.12.27",
"v0.12.26",
"v0.12.25",
"v0.12.24.post2",
"v0.12.24.post1",
"v0.12.24",
"v0.12.23",
"v0.12.22.post1",
"v0.12.22",
"v0.12.21",
"v0.12.20",
"v0.12.19",
"v0.12.18",
"v0.12.17.post2",
"v0.12.17.post1",
"v0.12.17",
"v0.12.16",
"v0.12.15",
"v0.12.14",
"v0.12.13.post1",
"v0.12.13",
"v0.12.12",
"v0.12.11",
"v0.12.10",
"v0.12.9.post1",
"v0.12.9",
"v0.12.8",
"v0.12.7",
"v0.12.6",
"v0.12.5",
"v0.12.4",
"v0.12.3",
"v0.12.2",
"v0.12.1",
"v0.12.0.post1",
"v0.12.0",
"v0.11.23.post3",
"v0.11.23.post2",
"v0.11.23.post1",
"v0.11.23",
"v0.11.22",
"v0.11.21",
"v0.11.20",
"v0.11.19",
"v0.11.18",
"v0.11.17.post1",
"v0.11.17",
"v0.11.16",
"v0.11.15",
"v0.11.14",
"v0.11.13",
"v0.11.12",
"v0.11.11",
"v0.11.10",
"v0.11.9",
"v0.11.8",
"v0.11.7",
"v0.11.6.post1",
"v0.11.6",
"v0.11.5",
"v0.11.4",
"v0.11.3",
"v0.11.2",
"v0.11.1",
"v0.11.0",
"v0.10.68",
"v0.10.67.post1",
"v0.10.67",
"v0.10.66",
"v0.10.63",
"v0.10.62",
"v0.10.61",
"v0.10.60",
"v0.10.59",
"v0.10.58",
"v0.10.57",
"v0.10.55",
"v0.10.54",
"v0.10.53",
"v0.10.52",
"v0.10.51",
"v0.10.50",
"v0.10.49",
"v0.10.48.post1",
"v0.10.48",
"v0.10.47",
"v0.10.44",
"v0.10.43",
"v0.10.42",
"v0.10.41",
"v0.10.40",
"v0.10.38",
"v0.10.37",
"v0.10.35",
"v0.10.34",
"v0.10.32",
"v0.10.31",
"v0.10.30",
"v0.10.29",
"v0.10.28.post1",
"v0.10.28",
"v0.10.27",
"v0.10.26",
"v0.10.25",
"v0.10.24",
"v0.10.23",
"v0.10.22",
"v0.10.20",
"v0.10.19",
"v0.10.18",
"v0.10.17",
"v0.10.16",
"v0.10.15",
"v0.10.14",
"v0.10.13.post1",
"v0.10.13",
"v0.10.12",
"v0.10.11",
"v0.10.10",
"v0.10.9",
"v0.10.8",
"v0.10.7",
"v0.10.6",
"v0.10.5",
"v0.10.3",
"v0.10.1",
"v0.10.0",
"v0.9.48",
"v0.9.46",
"v0.9.45.post1",
"v0.9.42.post2",
"v0.9.42.post1",
"v0.9.42",
"v0.9.41",
"v0.9.40",
"v0.9.39",
"v0.9.38",
"v0.9.37",
"v0.9.36",
"v0.9.31",
"v0.9.29",
"v0.9.28.post2",
"v0.9.28.post1",
"v0.9.28",
"v0.9.26",
"v0.9.25",
"v0.9.22",
"v0.9.17.dev1",
"v0.9.16.post1",
"v0.9.15.post2",
"v0.9.15.post1",
"v0.9.15",
"v0.9.14.post3",
"v0.9.12",
"v0.9.11.post1",
"v0.9.10",
"v0.9.9",
"v0.9.8.post1",
"v0.9.8",
"v0.9.7",
"v0.9.6.post2",
"v0.9.6.post1",
"v0.9.6",
"v0.9.5",
"v0.9.3.post1",
"v0.9.3",
"v0.9.1",
"v0.9.0",
"v0.8.69.post2",
"v0.8.69.post1",
"v0.8.69",
"v0.8.66",
"v0.8.63.post1",
"v0.8.53.post1",
"v0.8.45.post1",
"v0.8.45",
"v0.8.43.post1",
"v0.8.43",
"v0.8.38",
"v0.8.29.post1",
"v0.8.25",
"v0.8.11.post3",
"v0.8.11.post2",
"v0.8.11.post1",
"v0.8.10",
"v0.8.7",
"v0.8.5.post1",
"v0.8.4",
"v0.8.3",
"v0.8.2.post1",
"v0.8.2",
"v0.8.1.post1",
"v0.7.24.post1",
"v0.7.20",
"v0.7.19",
"v0.7.14",
"v0.7.13",
"v0.7.12",
"v0.7.11.post1",
"v0.7.11",
"v0.7.10",
"v0.7.9",
"v0.6.21",
"v0.6.3",
"v0.6.0",
"v0.6.0.alpha1",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6210.json"
}
}
],
"modified": "2026-10-28T02:30:26.091528389Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/a654b322-a509-4448-a1f5-0f22850b4687",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6210.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-6210",
"https://github.com/run-llama/llama_index/commit/a86c96ae0e662492eeb471b658ae849a93f628ff"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6210.json"
}
},
"related_cves": [
{
"value": "CVE-2025-6210",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492662,
"published_at": "2025-07-07T09:55:46.893+00:00"
}