Improper access control in Wasmtime - CVE-2026-47261
Published: May 22, 2026
Wasmtime
Detailed vulnerability description
The vulnerability allows a remote attacker to modify file contents despite configured write restrictions.
The vulnerability exists due to improper access control in Dir::open_at when handling path_open or descriptor.open-at requests with the OpenFlags::TRUNCATE flag. A remote attacker can open a file with the truncate flag but without write permissions to modify file contents despite configured write restrictions.
Only embeddings that grant directory mutation permissions while restricting file permissions to read-only are affected.