CVE-2026-58494
Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
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.
INFO
Published Date :
July 8, 2026, 9:16 p.m.
Last Modified :
July 8, 2026, 9:16 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update Wasmtime to version 24.0.11 or later.
- Update Wasmtime to version 36.0.12 or later.
- Update Wasmtime to version 45.0.3 or later.
- Update Wasmtime to version 46.0.1 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-58494.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-58494 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-58494
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-58494 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-58494 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Jul. 08, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'bytecodealliance', 'product': 'wasmtime', 'versions': [{'status': 'affected', 'version': '< 24.0.11'}, {'status': 'affected', 'version': '>= 25.0.0, < 36.0.12'}, {'status': 'affected', 'version': '>= 37.0.0, < 45.0.3'}, {'status': 'affected', 'version': '>= 46.0.0, < 46.0.1'}]}] Added 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. Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N Added CWE CWE-281 Added CWE CWE-863 Added Reference https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c Added Reference https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367 Added Reference https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd Added Reference https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e Added Reference https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11 Added Reference https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12 Added Reference https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3 Added Reference https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1 Added Reference https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj