Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bytecodealliance | wasmtime | before 24.0.11; 25.0.0 to before 36.0.12; 37.0.0 to before 45.0.3; 46.0.0 to before 46.0.1 | 24.0.11, 36.0.12, 45.0.3, 46.0.1 | Patch available | CNA |
| — | wasmtime-wasi (crates.io) | before 24.0.11 | 24.0.11 | Patch available | GHSA-4ch3-9j33-3pmj |
| — | wasmtime-wasi (crates.io) | 25.0.0 to before 36.0.12 | 36.0.12 | Patch available | GHSA-4ch3-9j33-3pmj |
| — | wasmtime-wasi (crates.io) | 37.0.0 to before 45.0.3 | 45.0.3 | Patch available | GHSA-4ch3-9j33-3pmj |
| — | wasmtime-wasi (crates.io) | 46.0.0 to before 46.0.1 | 46.0.1 | Patch available | GHSA-4ch3-9j33-3pmj |
- wasmtime Vendorbytecodealliance Affected before 24.0.11; 25.0.0 to before 36.0.12; 37.0.0 to before 45.0.3; 46.0.0 to before 46.0.1 Fixed in 24.0.11, 36.0.12, 45.0.3, 46.0.1 Patch available CNA
- wasmtime-wasi (crates.io) Vendor— Affected before 24.0.11 Fixed in 24.0.11 Patch available GHSA-4ch3-9j33-3pmj
- wasmtime-wasi (crates.io) Vendor— Affected 25.0.0 to before 36.0.12 Fixed in 36.0.12 Patch available GHSA-4ch3-9j33-3pmj
- wasmtime-wasi (crates.io) Vendor— Affected 37.0.0 to before 45.0.3 Fixed in 45.0.3 Patch available GHSA-4ch3-9j33-3pmj
- wasmtime-wasi (crates.io) Vendor— Affected 46.0.0 to before 46.0.1 Fixed in 46.0.1 Patch available GHSA-4ch3-9j33-3pmj
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:*:*:* | — | — | bytecodealliance |
- cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:*:*:* Versions — — ·bytecodealliance
Remediation
- Fix · CNA wasmtime (bytecodealliance) Fixed in 24.0.11, 36.0.12, 45.0.3, 46.0.1
- Fix · GHSA-4ch3-9j33-3pmj wasmtime-wasi (crates.io) Fixed in 24.0.11 Advisory →
- Fix · GHSA-4ch3-9j33-3pmj wasmtime-wasi (crates.io) Fixed in 36.0.12 Advisory →
- Fix · GHSA-4ch3-9j33-3pmj wasmtime-wasi (crates.io) Fixed in 45.0.3 Advisory →
- Fix · GHSA-4ch3-9j33-3pmj wasmtime-wasi (crates.io) Fixed in 46.0.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Connectivity Link 1 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-58494
- 2026-10-18 Alias added: GHSA-4ch3-9j33-3pmj
- 2026-10-18 Fix available: crates.io/[email protected], crates.io/[email protected], crates.io/[email protected] +1 · GHSA-4ch3-9j33-3pmj
- 2026-10-18 CVSS score added · GHSA-4ch3-9j33-3pmj
- 2026-10-18 Weakness changed · GHSA-4ch3-9j33-3pmj
- 2026-10-18 13 new references · GHSA-4ch3-9j33-3pmj
References
Other 12
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj
- https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c
- https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367
- https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd
- https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e
- https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11
- https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12
- https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3
- https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1
- https://github.com/bytecodealliance/wasmtime/pull/13725
- https://github.com/bytecodealliance/wasmtime
- https://rustsec.org/advisories/RUSTSEC-2026-0188.html
More bytecodealliance vulnerabilities
- TI-2026-85541 WAMR fast interpreter loader heap overflow via constant deduplication mismatch CVSS 4.0HIGH 8.8
- TI-2024-16741 An issue in bytecodealliance wasm-micro-runtime before v.b3f728c and fixed in commit… CVSS 3.1HIGH 8.8
- TI-2024-22658 An out-of-bound memory read vulnerability was discovered in Bytecode Alliance… CVSS 3.1HIGH 7.5
- TI-2024-18300 wasm-micro-runtime (aka WebAssembly Micro Runtime or WAMR) 06df58f is vulnerable to NULL… CVSS 3.1HIGH 7.5
- TI-2023-26034 An heap overflow vulnerability was discovered in Bytecode alliance wasm-micro-runtime… CVSS 3.1HIGH 7.5
- TI-2025-33969 WebAssembly Micro Runtime's `--addr-pool` option allows all IPv4 addresses when subnet mask is not specified CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-58494 · CVE Program
- CVE-2026-58494 · NVD
- FIRST EPSS
- GHSA-4ch3-9j33-3pmj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-58494 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences