# CVE-2026-58494: Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-281, CWE-863
- **Aliases:** GHSA-4ch3-9j33-3pmj, RUSTSEC-2026-0188
- **Published:** 2026-06-24T12:00:00.000Z
- **Modified:** 2026-10-25T17:10:00.197Z

## Who should check

- Projects that depend on crates.io package wasmtime-wasi (\< 24.0.11)
- Anyone running bytecodealliance wasmtime \< 24.0.11; \>= 25.0.0, \< 36.0.12; \>= 37.0.0, \< 45.0.3; \>= 46.0.0, \< 46.0.1

## 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.

## Affected and fixed versions

- crates.io `wasmtime-wasi`: affected \< 24.0.11; fixed 24.0.11, 36.0.12, 45.0.3, 46.0.1 (osv)
- bytecodealliance wasmtime: \< 24.0.11; \>= 25.0.0, \< 36.0.12; \>= 37.0.0, \< 45.0.3; \>= 46.0.0, \< 46.0.1 (cvelist)

## Mitigation

- Upgrade wasmtime-wasi to one of 24.0.11, 36.0.12, 45.0.3, 46.0.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-58494. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-58494.md
Affected: wasmtime-wasi < 24.0.11
Fixed in: 24.0.11, 36.0.12, 45.0.3, 46.0.1

Steps:
1. Search this machine and project for wasmtime-wasi (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-58494 being exploited?

There is no confirmed exploitation: CVE-2026-58494 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-58494?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-58494?

wasmtime-wasi \< 24.0.11.

### Is there a fix for CVE-2026-58494?

Yes. Fixed in 24.0.11, 36.0.12, 45.0.3, 46.0.1. Upgrade wasmtime-wasi to one of 24.0.11, 36.0.12, 45.0.3, 46.0.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-58494?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-58494>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0188.html>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/13725>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://crates.io/crates/wasmtime-wasi>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-58494>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4ch3-9j33-3pmj> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0188> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-58494> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-58494>
