{"answers":{"affected":"9 open source packages ship an affected version, including wasmtime-wasi.","exploited":"There is no known exploitation of CVE-2026-58494 in the wild and no public exploit code.","fix":"Upgrade wasmtime-wasi to a fixed version for your release line: 24.0.11, 36.0.12, 45.0.3 or 46.0.1.","what":"CVE-2026-58494 is a medium-severity missing authorization vulnerability in bytecodealliance wasmtime, published on 8 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-58494 and fix it if it is affected.\n\nWhat it is: CVE-2026-58494 is a medium-severity missing authorization vulnerability in bytecodealliance wasmtime, published on 8 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-58494 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wasmtime-wasi (crates.io): affected all versions; fixed in 24.0.11\n- wasmtime-wasi (crates.io): affected all versions; fixed in 24.0.11\n- wasmtime-wasi (crates.io): affected from 0.0.0-0; fixed in 24.0.11, 36.0.12, 45.0.3, 46.0.1\n- wasmtime-wasi (crates.io): affected from 25.0.0; fixed in 36.0.12\n- wasmtime-wasi (crates.io): affected from 25.0.0; fixed in 36.0.12\n- wasmtime-wasi (crates.io): affected from 37.0.0; fixed in 45.0.3\n- wasmtime-wasi (crates.io): affected from 37.0.0; fixed in 45.0.3\n- wasmtime-wasi (crates.io): affected from 46.0.0; fixed in 46.0.1\n- wasmtime-wasi (crates.io): affected from 46.0.0; fixed in 46.0.1\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-58494/ (Markdown: https://insights.sbomify.com/CVE-2026-58494/index.md)","id":"CVE-2026-58494","markdown":"https://insights.sbomify.com/CVE-2026-58494/index.md","name":"CVE-2026-58494","record":{"aliases":["DEBIAN-CVE-2026-58494","GHSA-4ch3-9j33-3pmj","JLSEC-2026-1368","MINI-hm6w-m864-527m","MINI-pw4r-vcq9-pjp4","MINI-v58j-vw6j-p685","RUSTSEC-2026-0188","UBUNTU-CVE-2026-58494"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"WebAssembly runtime","requires_auth":"low_privilege","summary":"A WASI guest can overwrite host files via hard links or renames, bypassing read-only file permissions in the Wasmtime runtime.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"description":"Wasmtime is a runtime for WebAssembly. Prior to 24.0.11, 36.0.12, 45.0.3, and 46.0.1, wasmtime-wasi hard-link creation and renaming check directory permissions but not matching FilePerms on source and destination preopens, allowing a WASI guest with a read-only source file capability to overwrite host files exposed as FilePerms::READ through wasip1, wasip2, or wasip3 filesystem interfaces. This issue is fixed in versions 24.0.11, 36.0.12, 45.0.3, and 46.0.1.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination","id":"CVE-2026-58494","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":9,"n_references":9,"next":{"headline":"ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API","id":"CVE-2026-58496"},"packages":[{"ecosystem":"crates.io","fixed":["24.0.11"],"introduced":["0"],"last_affected":[],"package":"wasmtime-wasi","purl":null,"source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["24.0.11"],"introduced":["0"],"last_affected":[],"package":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["24.0.11","36.0.12","45.0.3","46.0.1"],"introduced":["0.0.0-0","25.0.0","37.0.0","46.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","source":"RUSTSEC-2026-0188"},{"ecosystem":"crates.io","fixed":["36.0.12"],"introduced":["25.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":null,"source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["36.0.12"],"introduced":["25.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["45.0.3"],"introduced":["37.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":null,"source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["45.0.3"],"introduced":["37.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["46.0.1"],"introduced":["46.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":null,"source":"GHSA-4ch3-9j33-3pmj"},{"ecosystem":"crates.io","fixed":["46.0.1"],"introduced":["46.0.0"],"last_affected":[],"package":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","source":"GHSA-4ch3-9j33-3pmj"}],"prev":{"headline":"grav-plugin-database: DSN Parameter Injection via Unsanitized Configuration Values in Connection String Construction","id":"CVE-2026-58493"},"products":["wasmtime"],"published":"2026-07-08","related":[],"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":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"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":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["bytecodealliance"]},"summary":"A WASI guest can overwrite host files via hard links or renames, bypassing read-only file permissions in the Wasmtime runtime.","url":"https://insights.sbomify.com/CVE-2026-58494/"}