Improper Preservation of Permissions in Wasmtime - CVE-2026-58494
Published: August 1, 2026
Vulnerability details
The vulnerability allows a local user to modify host files exposed as read-only.
The vulnerability exists due to improper preservation of permissions in wasmtime-wasi WASI filesystem hard link and rename operations when creating a hard link or renaming a hard link across preopens with different file permissions. A local user can create or move a hard link into a writable preopen and open it for writing to modify host files exposed as read-only.
Only embeddings that use a combination of DirPerms::MUTATE with FilePerms::READ and a second preopen with higher file permissions are vulnerable. The issue affects the wasip1, wasip2, and wasip3 filesystem interfaces.