CVE-2026-58494 Details
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.
A vulnerability exists in the Wasmtime WebAssembly runtime, specifically within the wasmtime-wasi component, prior to versions 24.0.11, 36.0.12, 45.0.3, and 46.0.1. The issue arises because the hard-link creation and renaming functions do not properly verify directory permissions against the file permissions of the source and destination preopens. This oversight allows a WASI guest with read-only access to a file to overwrite host files that are exposed with read permissions through the wasip1, wasip2, or wasip3 filesystem interfaces. The vulnerability can be exploited by creating a hard link to a read-only file in a writable directory or by renaming a hard link across different permission domains, effectively bypassing the intended file permission restrictions.
Users can update to Wasmtime versions 24.0.11, 36.0.12, 45.0.3, or 46.0.1, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 8, 2026CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-281 | Improper Preservation of Permissions | [email protected] |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bytecodealliance wasmtime-wasi | < 24.0.11 (semver) >= 25.0.0 (semver) < 36.0.12 (semver) >= 37.0.0 (semver) < 45.0.3 (semver) 46.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |
Volerion