{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-58494","id":"CVE-2026-58494","title":"Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination","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 is","descriptionLong":"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.","published":"2026-07-08T20:22:16.039Z","updated":"2026-10-28T02:31:09.813451296Z","reserved":"2026-06-30T20:21:25.812Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["bytecodealliance wasmtime"],"affectedProducts":[{"vendor":"bytecodealliance","product":"wasmtime","defaultStatus":null,"versions":[{"version":"< 24.0.11","status":"affected"},{"version":">= 25.0.0, < 36.0.12","status":"affected"},{"version":">= 37.0.0, < 45.0.3","status":"affected"},{"version":">= 46.0.0, < 46.0.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"wasmtime-wasi","purl":"pkg:cargo/wasmtime-wasi","ranges":["<24.0.11",">=25.0.0 <36.0.12",">=37.0.0 <45.0.3",">=46.0.0 <46.0.1",">=0.0.0-0 <24.0.11"],"fixed":["24.0.11","36.0.12","45.0.3","46.0.1"],"advisory":"GHSA-4ch3-9j33-3pmj"}],"cwes":["CWE-281","CWE-863"],"aliases":["GHSA-4ch3-9j33-3pmj","RUSTSEC-2026-0188"],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58494.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58494","tags":["advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/13725","tags":["web"]},{"url":"https://github.com/bytecodealliance/wasmtime","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0188.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/wasmtime-wasi","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00171,"epssPercentile":0.06608,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-58494","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58494","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-58494","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4ch3-9j33-3pmj","ok":true,"note":"GHSA-4ch3-9j33-3pmj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-58494","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}