cve.bz

CVE-2026-47261 bytecodealliance wasmtime: Improper Access Control

7.5 highEPSS 0.4%Fix available

High (7.5) in bytecodealliance wasmtime. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in wasmtime-wasi 24.0.9, 36.0.10, 44.0.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-47261 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-47261?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-47261?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-47261 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
bytecodealliance:wasmtimebefore 24.0.9
bytecodealliance:wasmtimefrom 25.0.0 before 36.0.10
bytecodealliance:wasmtimefrom 37.0.0 before 44.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2r75-cxrj-cmphcrates.iowasmtime-wasi>=37.0.0 <44.0.244.0.2
GHSA-2r75-cxrj-cmphcrates.iowasmtime-wasi>=25.0.0 <36.0.1036.0.10
GHSA-2r75-cxrj-cmphcrates.iowasmtime-wasi<24.0.924.0.9
RUSTSEC-2026-0149crates.iowasmtime-wasi>=0.0.0-0 <24.0.9
>=25.0.0 <36.0.10
>=37.0.0 <44.0.2
>=45.0.0 <45.0.0
24.0.9, 36.0.10, 44.0.2, 45.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13rust-wasmtimeno fix listedDEBIAN-CVE-2026-47261
Debian14rust-wasmtime36.0.11+dfsg-1DEBIAN-CVE-2026-47261
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morerust-wasmtimeno fix listedUBUNTU-CVE-2026-47261

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Conditions for Exploitation: Successful exploitation relies on a highly specific configuration of wasmtime-wasi embeddings. The vulnerability only triggers if a filesystem preopen explicitly combines directory mutation permissions (DirPerms::MUTATE) with read-only file permissions (FilePerms::READ).

Impact Limitations: The flaw bypasses access controls solely to allow file truncation, resulting in unauthorized data modification or data loss. It does not enable an attacker to inject arbitrary data, read unpermitted files, execute arbitrary code, or escalate privileges on the host system.

Specific Components Not Affected: The standard Wasmtime command-line interface (wasmtime-cli) is completely unaffected by this bug, as it defaults to granting full file permissions for all preopens. This significantly reduces the likelihood of widespread exploitation in default deployments.

Red Hat's mitigation

To mitigate this issue, ensure that `wasmtime-wasi` embeddings are not configured with a combination of `DirPerms::MUTATE` and `FilePerms::READ` for filesystem preopens. Review `WasiCtxBuilder` configurations to avoid this vulnerable permission combination, which allows an attacker to bypass access controls and truncate files that should otherwise be read-only.

ProductPackageStateAdvisory
Red Hat Connectivity Link 1rhcl-1/wasm-shim-rhel9Fix deferred
Red Hat Enterprise Linux 10virt-firmware-rsFix deferred
Red Hat Hardened ImagesrustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-47261.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON