SecurityContext

CVE-2026-47261: Wasmtime - Broken Access Control

  • Cve: CVE-2026-47261
  • Name: Wasmtime - Broken Access Control
  • 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.
  • Impact: Attackers can bypass file access controls, potentially modifying files without proper permissions.
  • Remediation: Update to versions 24.0.9, 36.0.10, or 44.0.2 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: data_tampering
  • Requirements: Requires DirPerms::MUTATE with FilePerms::READ without WRITE permissions
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00357
  • Epss percentile: 0.30051
  • Assignee: [email protected]
  • Published at: 2026-06-15T21:17:11Z
  • Age in days: 162
  • Modified at: 2026-10-25T23:10:00Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-47261
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-284Improper Access Control
NVD-CWE-noinfo—

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmphMitigation, Vendor Advisory
https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.9Release Notes
https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.10Release Notes
https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.2Release Notes
https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.0Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
bytecodealliance:wasmtime>= 37.0.0, < 44.0.2; >= 25.0.0, < 36.0.10; < 24.0.9nonvd/v1/products/bytecodealliance/wasmtime

Projects

RepositoryLink kindsIndexedUrl
bytecodealliance/wasmtimepackage, releases, security_advisoryyes/v1/repositories/bytecodealliance/wasmtime

Index

  • Repositories: 16
  • Repositories high signal: 11
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts