[ CVE-2026-58494 · Published 8 Jul 2026 ]
Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
CVSS 6.5
EPSS <1%Fix available
[ Description ]Official 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.
[ Fixes ]Fixes and patches
- wasmtime-wasi 24.0.11Fixed version · GitHub Advisories · rust package wasmtime-wasi: upgrade to 24.0.11 or later (affected < 24.0.11)
- wasmtime-wasi 36.0.12Fixed version · GitHub Advisories · rust package wasmtime-wasi: upgrade to 36.0.12 or later (affected >= 25.0.0, < 36.0.12)
- wasmtime-wasi 45.0.3Fixed version · GitHub Advisories · rust package wasmtime-wasi: upgrade to 45.0.3 or later (affected >= 37.0.0, < 45.0.3)
- wasmtime-wasi 46.0.1Fixed version · GitHub Advisories · rust package wasmtime-wasi: upgrade to 46.0.1 or later (affected >= 46.0.0, < 46.0.1)
[ Packages ]Affected open-source packages
- wasmtime-wasi rustAffected < 24.0.11 · fixed in 24.0.11 · GHSA-4ch3-9j33-3pmj
- wasmtime-wasi rustAffected >= 25.0.0, < 36.0.12 · fixed in 36.0.12 · GHSA-4ch3-9j33-3pmj
- wasmtime-wasi rustAffected >= 37.0.0, < 45.0.3 · fixed in 45.0.3 · GHSA-4ch3-9j33-3pmj
- wasmtime-wasi rustAffected >= 46.0.0, < 46.0.1 · fixed in 46.0.1 · GHSA-4ch3-9j33-3pmj
[ References ]References
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmjx_refsource_CONFIRM
- github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0cx_refsource_MISC
- github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367x_refsource_MISC
- github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcdx_refsource_MISC
- github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9ex_refsource_MISC
- github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11x_refsource_MISC
- github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12x_refsource_MISC
- github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3x_refsource_MISC
- github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1x_refsource_MISC