# CVE-2026-47261: Wasmtime: WASI path\_open(TRUNCATE) bypasses \`FilePerms::WRITE\` host restriction

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 24.0.9, 36.0.10, 44.0.2 (CNA); fix release not confirmed
- Status: published
- Published: 2026-06-15 · Modified: 2026-06-16
- Aliases: UBUNTU-CVE-2026-47261, DEBIAN-CVE-2026-47261, CGA-6cxm-2wv3-2vh5, CGA-mfw4-crh8-xmm8, CGA-p4c3-5mp8-7qqw, CGA-xpvc-vq87-c5fx, GHSA-2r75-cxrj-cmph, RUSTSEC-2026-0149
- Record: https://cvemate.com/vulnerability/CVE-2026-47261 · JSON: https://cvemate.com/vulnerability/CVE-2026-47261/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.357%, percentile 31.463%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard wizer (Chainguard): \< 11.0.3-r12
- chainguard zed (Chainguard): \< 1.5.4-r1
- wolfi wizer (Wolfi): \< 11.0.3-r12
- wolfi zed (Wolfi): \< 1.5.4-r1
- bytecodealliance wasmtime: \< 24.0.9 \| ≥ 25.0.0, \< 36.0.10 \| ≥ 37.0.0, \< 44.0.2
- Crates.Io wasmtime-wasi (Crates.Io): ≥ 37.0.0, \< 44.0.2 \| ≥ 25.0.0, \< 36.0.10 \| \< 24.0.9 \| ≥ 45.0.0, \< 45.0.0
- debian rust-wasmtime (Debian): All versions (No fix recorded) \| \< 36.0.11+dfsg-1
- ubuntu rust-wasmtime (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph>
- <https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.9>
- <https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.10>
- <https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.2>
- <https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.0>
- <https://ubuntu.com/security/CVE-2026-47261>
- <https://www.cve.org/CVERecord?id=CVE-2026-47261>
- <https://security-tracker.debian.org/tracker/CVE-2026-47261>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47261.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47261>
- <https://github.com/bytecodealliance/wasmtime>
- <https://rustsec.org/advisories/RUSTSEC-2026-0149.html>
- <https://crates.io/crates/wasmtime-wasi>
- <https://github.com/bytecodealliance/wasmtime/pull/13429>

---

Data as of 2026-12-05T11:00:24.326Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
