Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-47261

HIGH 7.5EPSS 36%

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

Also known as GHSA-2r75-cxrj-cmph, RUSTSEC-2026-0149

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).

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

Vulnerability facts

Affected
wasmtime-wasi >= 37.0.0, < 44.0.2
Fixed in
44.0.2, 36.0.10, 24.0.9, 45.0.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.50% chance of exploitation in 30 days (percentile 36, 2026-11-26)
CWE
CWE-284
Published
Modified

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

Package / productAffectedFixedSource
crates.io wasmtime-wasi>= 37.0.0, < 44.0.244.0.2, 36.0.10, 24.0.9, 45.0.0osv
bytecodealliance wasmtime>= 37.0.0, < 44.0.2; >= 25.0.0, < 36.0.10; < 24.0.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors