ADVISORIES

Vulnerability

CVE-2026-47261

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.

9 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • CGA-6cxm-2wv3-2vh5
    CVE-2026-47261 ChainguardWolfi Updated 5 November 2026
  • CGA-mfw4-crh8-xmm8
    CVE-2026-47261 ChainguardWolfi Updated 5 November 2026
  • CGA-p4c3-5mp8-7qqw
    CVE-2026-47261 ChainguardWolfi Updated 5 November 2026
  • CGA-xpvc-vq87-c5fx
    CVE-2026-47261 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2026-47261

    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…

    CVE-2026-47261 Debian Updated 26 October 2026
  • GHSA-2r75-cxrj-cmph

    wasmtime-wasi: WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction

    High CVE-2026-47261 crates.io Updated 10 September 2026
  • RHVEX-CVE-2026-47261

    wasmtime-wasi: Wasmtime: Wasmtime: Access control bypass allows unauthorized file truncation via specific open flags.

    Moderate CVE-2026-47261 Red Hat Updated 5 November 2026
  • RUSTSEC-2026-0149

    WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction

    CVE-2026-47261 crates.io Updated 12 October 2026
  • UBUNTU-CVE-2026-47261

    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…

    CVE-2026-47261 Ubuntu Updated 17 October 2026

References