CVEfocus › CVE database › CVE-2026-47261

CVE-2026-47261Wasmtime: WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction

CVSS 7.5 HighEPSS 0.5% (higher than 36% of CVEs)Published 2026-06-15Updated 2026-06-16Assigner: GitHub_M

Wasmtime is a runtime for WebAssembly. In versions prior to 24.0.9, 36.0.10, and 44.0.2, when a filesystem preopen is given DirPerms::all() and FilePerms::READ without FilePerms::WRITE, this access control mechanism can be bypassed via the wasip2 descriptor.open-at or wasip1 path_open interfaces by opening a file with only the OpenFlags::TRUNCATE oflag. The root cause is that the clause handling OpenFlags::TRUNCATE in crates/wasi/src/filesystem.rs (Dir::open_at, lines 967–969) did not set open_mode |= OpenMode::WRITE;, which is later used for the access control check against FilePerms to determine whether opening the file is permitted; the single-line fix adds that missing assignment, after which the affected calls correctly fail with error-code.not-permitted and ERRNO_PERM respectively. Only wasmtime-wasi embeddings that combine DirPerms::MUTATE with FilePerms::READ are affected by this bug. In particular, the Wasmtime project's wasmtime-cli's use of wasmtime-wasi is not affected, because it always sets FilePerms::all() for all preopens. This issue has been fixed in versions 24.0.9, 36.0.10 and44.0.2.

CWE-284

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
3Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-wasmtimeFix pendingUBUNTU-CVE-2026-47261
Ubuntu 26.04rust-wasmtimeUnder investigationUBUNTU-CVE-2026-47261
Ubuntu 25.10rust-wasmtimeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-47261
Ubuntu 24.04rust-wasmtimeUnder investigationUBUNTU-CVE-2026-47261
Debian 14rust-wasmtimeFixed36.0.11+dfsg-1DEBIAN-CVE-2026-47261
Debian 13rust-wasmtimeFix pendingDEBIAN-CVE-2026-47261
Red Hat Enterprise Linux 10virt-firmware-rsFix pending
Fix deferred
crates.io librarywasmtime-wasiFixed24.0.9RUSTSEC-2026-0149

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.