{"answers":{"affected":"4 open source packages ship an affected version, including llama-index-readers-obsidian and llama-index. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3046 exists.","fix":"Upgrade llama-index-readers-obsidian to 0.5.1 or later.","what":"CVE-2025-3046 is a high-severity path traversal vulnerability in run-llama/llama_index, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-3046 and fix it if it is affected.\n\nWhat it is: CVE-2025-3046 is a high-severity path traversal vulnerability in run-llama/llama_index, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3046 exists.\n\nAffected packages and fixed versions:\n- llama-index-readers-obsidian (PyPI): affected all versions; fixed in 0.5.1\n- llama-index-readers-obsidian (PyPI): affected all versions; fixed in 0.5.1\n- llama-index-readers-obsidian (PyPI): affected all versions; fixed in 0.5.1\n- llama-index (PyPI): affected from 0.12.23; fixed in 0.12.28\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-3046/ (Markdown: https://insights.sbomify.com/CVE-2025-3046/index.md)","id":"CVE-2025-3046","markdown":"https://insights.sbomify.com/CVE-2025-3046/index.md","name":"CVE-2025-3046","record":{"aliases":["GHSA-fmrf-6jv9-qjc7","PYSEC-2025-248","PYSEC-2026-1568"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python LLM library","requires_auth":"none","summary":"Attackers can read arbitrary files outside the intended directory by exploiting symbolic link handling in the ObsidianReader class of the llama_index library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"llamaindex","vendor":"llamaindex"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A vulnerability in the `ObsidianReader` class of the run-llama/llama_index repository, versions 0.12.23 to 0.12.28, allows for arbitrary file read through symbolic links. The `ObsidianReader` fails to resolve symlinks to their real paths and does not validate whether the resolved paths lie within the intended directory. This flaw enables attackers to place symlinks pointing to files outside the vault directory, which are then processed as valid Markdown files, potentially exposing sensitive information.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal via Symbolic Links in run-llama/llama_index","id":"CVE-2025-3046","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"Path Traversal in AWS SAM CLI allows file copy to build container","id":"CVE-2025-3047"},"packages":[{"ecosystem":"PyPI","fixed":["0.12.28"],"introduced":["0.12.23"],"last_affected":[],"package":"llama-index","purl":"pkg:pypi/llama-index","source":"PYSEC-2025-248"},{"ecosystem":"PyPI","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"llama-index-readers-obsidian","purl":null,"source":"GHSA-fmrf-6jv9-qjc7"},{"ecosystem":"PyPI","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"llama-index-readers-obsidian","purl":"pkg:pypi/llama-index-readers-obsidian","source":"GHSA-fmrf-6jv9-qjc7"},{"ecosystem":"PyPI","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"llama-index-readers-obsidian","purl":"pkg:pypi/llama-index-readers-obsidian","source":"PYSEC-2026-1568"}],"prev":{"headline":"oretnom23/SourceCodester Apartment Visitor Management System remove-apartment.php sql injection","id":"CVE-2025-3045"},"products":["run-llama/llama_index"],"published":"2025-07-07","related":[{"cvss_score":10,"headline":"SQL Injection to RCE in run-llama/llama_index","id":"CVE-2024-12909","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1793","kev_date_added":null,"published":"2025-06-05"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1750","kev_date_added":null,"published":"2025-06-02"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2024-11958","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.8,"headline":"Command Injection in run-llama/llama_index","id":"CVE-2024-3271","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":9.8,"headline":"SQL injection in llama-index","id":"CVE-2024-23751","kev_date_added":null,"published":"2024-01-22"},{"cvss_score":8.8,"headline":"LlamaIndex includes an exec call for `import {cls_name}`","id":"CVE-2024-45201","kev_date_added":null,"published":"2024-08-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-07","vendors":["run-llama"]},"summary":"Attackers can read arbitrary files outside the intended directory by exploiting symbolic link handling in the ObsidianReader class of the llama_index library.","url":"https://insights.sbomify.com/CVE-2025-3046/"}