{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-58474 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-58474 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-58474 is a high-severity code injection vulnerability in Andyyyy64 whichllm, published on 26 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-58474 and fix it if it is affected.\n\nWhat it is: CVE-2026-58474 is a high-severity code injection vulnerability in Andyyyy64 whichllm, published on 26 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-58474 in the wild and no public exploit code.\n\nAffected product: Andyyyy64 whichllm. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-58474/ (Markdown: https://insights.sbomify.com/CVE-2026-58474/index.md)","id":"CVE-2026-58474","markdown":"https://insights.sbomify.com/CVE-2026-58474/index.md","name":"CVE-2026-58474","record":{"aliases":["GHSA-hfpc-7mr4-p297"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"LLM CLI tool","requires_auth":"none","summary":"A remote attacker can achieve arbitrary code execution on a user's machine by crafting a malicious HuggingFace repository filename that exploits unescaped string interpolation in the whichllm CLI.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"whichllm before 0.5.16 contains a code injection vulnerability in the run and snippet commands that allows a remote attacker who controls a HuggingFace repository to achieve arbitrary code execution by crafting a malicious GGUF filename containing double quotes or other special characters. The script generation function in cli.py interpolates HuggingFace-derived values, including GGUF variant filenames from the Hub API siblings rfilename field, directly into Python source code without escaping, allowing the crafted filename to break out of the generated string literal and execute injected code on the user's machine before any model download occurs.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"whichllm \u003c 0.5.16 Code Injection via run and snippet commands","id":"CVE-2026-58474","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":4,"next":{"headline":"Sustainable Irrigation Platform 5.2.16 Stored XSS via Program Name","id":"CVE-2026-58475"},"packages":[],"prev":{"headline":"Cognee \u003c 1.2.0 Unauthorized LLM Configuration Overwrite via /api/v1/settings","id":"CVE-2026-58473"},"products":["whichllm"],"published":"2026-08-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-29","vendors":["Andyyyy64"]},"summary":"A remote attacker can achieve arbitrary code execution on a user's machine by crafting a malicious HuggingFace repository filename that exploits unescaped string interpolation in the whichllm CLI.","url":"https://insights.sbomify.com/CVE-2026-58474/"}