CVE-2026-58494
MEDIUM 6.5CVSS 3.1Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
Wasmtime is a runtime for WebAssembly. Prior to 24.0.11, 36.0.12, 45.0.3, and 46.0.1, wasmtime-wasi hard-link creation and renaming check directory permissions but not matching FilePerms on source and destination preopens, allowing a WASI guest with a read-only source file capability to overwrite host files exposed as FilePerms::READ through wasip1, wasip2, or wasip3 filesystem interfaces. This issue is fixed in versions 24.0.11, 36.0.12, 45.0.3, and 46.0.1.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-281CWE-863
- Also known as
- GHSA-4ch3-9j33-3pmjRUSTSEC-2026-0188
- Sources
- NVDJSONOSV GHSA-4ch3-9j33-3pmjJSONOSV RUSTSEC-2026-0188JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | wasmtime-wasi | < 24.0.11 | 24.0.11 |
| OSV | crates.io | wasmtime-wasi | >= 25.0.0, < 36.0.12 | 36.0.12 |
| OSV | crates.io | wasmtime-wasi | >= 37.0.0, < 45.0.3 | 45.0.3 |
| OSV | crates.io | wasmtime-wasi | >= 46.0.0, < 46.0.1 | 46.0.1 |
| OSV | crates.io | wasmtime-wasi | >= 0.0.0-0, < 24.0.11; >= 25.0.0, < 36.0.12; >= 37.0.0, < 45.0.3; >= 46.0.0, < 46.0.1 | 24.0.11, 36.0.12, 45.0.3, 46.0.1 |
References
- https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c · WEB
- https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367 · WEB
- https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd · WEB
- https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e · WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11 · WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12 · WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3 · WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1 · WEB
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-58494 · ADVISORY
- https://github.com/bytecodealliance/wasmtime/pull/13725 · WEB
- https://github.com/bytecodealliance/wasmtime · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0188.html · WEB, ADVISORY
- https://crates.io/crates/wasmtime-wasi · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Oct 2026)