Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-58494 EUVD-2026-42393GHSA-4ch3-9j33-3pmjRUSTSEC-2026-0188

Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
bytecodealliance wasmtime < 24.0.11, >= 25.0.0, < 36.0.12, >= 37.0.0, < 45.0.3, >= 46.0.0, < 46.0.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-wasmtime 36.0.12+dfsg-1 —
Debian 13 rust-wasmtime No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-wasmtime No fix yet —
Ubuntu 26.04 LTS rust-wasmtime No fix yet —
Ubuntu 25.10 rust-wasmtime No fix yet —
Ubuntu 24.04 LTS rust-wasmtime No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling wizer 11.0.3-r20 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io wasmtime-wasi < 24.0.11 24.0.11 GHSA-4ch3-9j33-3pmj
crates.io wasmtime-wasi >= 25.0.0, < 36.0.12 36.0.12 GHSA-4ch3-9j33-3pmj
crates.io wasmtime-wasi >= 37.0.0, < 45.0.3 45.0.3 GHSA-4ch3-9j33-3pmj
crates.io wasmtime-wasi >= 46.0.0, < 46.0.1 46.0.1 GHSA-4ch3-9j33-3pmj
crates.io wasmtime-wasi >= 0.0.0-0, < 24.0.11 · >= 25.0.0, < 36.0.12 · >= 37.0.0, < 45.0.3 · >= 46.0.0, < 46.0.1 24.0.11, 36.0.12, 45.0.3, 46.0.1 RUSTSEC-2026-0188

References