Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
Summary
| CVE | CVE-2026-58494 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-08 21:16:54 UTC |
| Updated | 2026-07-08 21:16:54 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Problem Types: CWE-281 | CWE-863 | CWE-281 CWE-281: Improper Preservation of Permissions | CWE-863 CWE-863: Incorrect Authorization
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
NoneIntegrity
HighAvailability
NoneCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Bytecodealliance | Wasmtime | affected < 24.0.11 | Not specified |
| CNA | Bytecodealliance | Wasmtime | affected >= 25.0.0, < 36.0.12 | Not specified |
| CNA | Bytecodealliance | Wasmtime | affected >= 37.0.0, < 45.0.3 | Not specified |
| CNA | Bytecodealliance | Wasmtime | affected >= 46.0.0, < 46.0.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f1652572... | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0... | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12 | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9... | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11 | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-... | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1 | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b... | [email protected] | github.com | |
| github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.