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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-284
- **Aliases:** GHSA-2r75-cxrj-cmph, RUSTSEC-2026-0149
- **Published:** 2026-05-21T12:00:00.000Z
- **Modified:** 2026-10-25T23:10:00.167Z

## Who should check

- Projects that depend on crates.io package wasmtime-wasi (\>= 37.0.0, \< 44.0.2)
- Anyone running bytecodealliance wasmtime \>= 37.0.0, \< 44.0.2; \>= 25.0.0, \< 36.0.10; \< 24.0.9

## Description

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.

## Affected and fixed versions

- crates.io `wasmtime-wasi`: affected \>= 37.0.0, \< 44.0.2; fixed 44.0.2, 36.0.10, 24.0.9, 45.0.0 (osv)
- bytecodealliance wasmtime: \>= 37.0.0, \< 44.0.2; \>= 25.0.0, \< 36.0.10; \< 24.0.9 (cvelist)

## Mitigation

- Upgrade wasmtime-wasi to one of 44.0.2, 36.0.10, 24.0.9, 45.0.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-47261. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47261.md
Affected: wasmtime-wasi >= 37.0.0, < 44.0.2
Fixed in: 44.0.2, 36.0.10, 24.0.9, 45.0.0

Steps:
1. Search this machine and project for wasmtime-wasi (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-47261 being exploited?

There is no confirmed exploitation: CVE-2026-47261 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-47261?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-47261?

wasmtime-wasi \>= 37.0.0, \< 44.0.2.

### Is there a fix for CVE-2026-47261?

Yes. Fixed in 44.0.2, 36.0.10, 24.0.9, 45.0.0. Upgrade wasmtime-wasi to one of 44.0.2, 36.0.10, 24.0.9, 45.0.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-47261?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-47261>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0149.html>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/13429>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.9>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.10>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.2>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.0>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://crates.io/crates/wasmtime-wasi>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-47261>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2r75-cxrj-cmph> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0149> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-47261> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-47261>
