PT-2026-42815 · Bytecode Alliance · Wasmtime-Wasi

·

CVE-2026-47261

·

Published

2026-05-21

·

Updated

2026-06-17

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions wasmtime-wasi (affected versions not specified)
Description An access control mechanism bypass exists when a filesystem preopen is configured with DirPerms::all() and FilePerms::READ without FilePerms::WRITE. This allows bypassing restrictions by using the wasip2 descriptor.open-at or wasip1 path open interfaces to open a file using only the OpenFlags::TRUNCATE flag. The issue stems from the Dir::open at() function in crates/wasi/src/filesystem.rs, where the logic handling OpenFlags::TRUNCATE fails to set the open mode to OpenMode::WRITE, which is required for the subsequent access control check against FilePerms.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Access Control

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-47261
GHSA-2R75-CXRJ-CMPH
RUSTSEC-2026-0149

Affected Products

Wasmtime-Wasi