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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-08 · Modified: 2026-07-09
- Aliases: UBUNTU-CVE-2026-58494, DEBIAN-CVE-2026-58494, RUSTSEC-2026-0188, GHSA-4ch3-9j33-3pmj, CGA-p2r4-3mxf-rm22, CGA-r367-h43w-c552
- Record: https://cvemate.com/vulnerability/CVE-2026-58494 · JSON: https://cvemate.com/vulnerability/CVE-2026-58494/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- EPSS: 0.12%, percentile 1.971%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard wizer (Chainguard): All versions (No fix recorded) \| \< 11.0.3-r20
- wolfi wizer (Wolfi): All versions (No fix recorded) \| \< 11.0.3-r20
- bytecodealliance wasmtime: \< 24.0.11 \| ≥ 25.0.0, \< 36.0.12 \| ≥ 37.0.0, \< 45.0.3 \| ≥ 46.0.0, \< 46.0.1
- Crates.Io wasmtime-wasi (Crates.Io): \< 24.0.11 \| ≥ 25.0.0, \< 36.0.12 \| ≥ 37.0.0, \< 45.0.3 \| ≥ 46.0.0, \< 46.0.1
- debian rust-wasmtime (Debian): All versions (No fix recorded) \| \< 36.0.12+dfsg-1
- ubuntu rust-wasmtime (Ubuntu): All versions (No fix recorded)

## References

- <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://ubuntu.com/security/CVE-2026-58494>
- <https://www.cve.org/CVERecord?id=CVE-2026-58494>
- <https://security-tracker.debian.org/tracker/CVE-2026-58494>
- <https://crates.io/crates/wasmtime-wasi>
- <https://rustsec.org/advisories/RUSTSEC-2026-0188.html>
- <https://github.com/bytecodealliance/wasmtime/pull/13725>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-58494>
- <https://github.com/bytecodealliance/wasmtime>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58494.json>

---

Data as of 2026-12-05T10:24:50.998Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
