- Accueil
- Vulnérabilités
- CVE-2026-47261
CVE-2026-47261
Wasmtime is a runtime for WebAssembly. In versions prior to 24.0.9, 36.0.10, and 44.0.2, when a filesystem…
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Bytecodealliance (3 ligne(s))
crates.io (4 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| wasmtime-wasi | de 0.0.0-0 (inclus) à 24.0.9 (exclu) |
24.0.9 |
OSV |
| wasmtime-wasi | de 25.0.0 (inclus) à 36.0.10 (exclu) |
36.0.10 |
OSV |
| wasmtime-wasi | de 37.0.0 (inclus) à 44.0.2 (exclu) |
44.0.2 |
OSV |
| wasmtime-wasi | de 45.0.0 (inclus) à 45.0.0 (exclu) |
45.0.0 |
OSV |
Correctif
Mise à jour — crates.io/wasmtime-wasi 24.0.9; crates.io/wasmtime-wasi 36.0.10; crates.io/wasmtime-wasi 44.0.2; crates.io/wasmtime-wasi 45.0.0source officielle
Source : OSV
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- RUSTSEC-2026-0149 — WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction 21 mai 2026
Références
- 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
- https://crates.io/crates/wasmtime-wasiPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0149.htmlADVISORY
- https://github.com/bytecodealliance/wasmtime/pull/13429WEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- NVD
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N(CVSS 3.1, CNA:security-advisories@github.com)- Faiblesse
- NVD-CWE-noinfo · Non classé