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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-24T12:00:00.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-4ch3-9j33-3pmj, RUSTSEC-2026-0188
- Weaknesses: CWE-281, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- bytecodealliance wasmtime: < 24.0.11; >= 25.0.0, < 36.0.12; >= 37.0.0, < 45.0.3; >= 46.0.0, < 46.0.1
- wasmtime-wasi (crates.io): before 24.0.11; from 25.0.0 before 36.0.12; from 37.0.0 before 45.0.3; from 46.0.0 before 46.0.1; from 0.0.0-0 before 24.0.11

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-58494](https://www.cve.org/CVERecord?id=CVE-2026-58494), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-4ch3-9j33-3pmj](https://github.com/advisories/GHSA-4ch3-9j33-3pmj), CC-BY-4.0, modified 2026-10-16
- RustSec Advisory Database: [RUSTSEC-2026-0188](https://rustsec.org/advisories/RUSTSEC-2026-0188.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2026-58494](https://nvd.nist.gov/vuln/detail/CVE-2026-58494), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58494 · Whole record: https://cve.day/CVE-2026-58494.json · Rebuilt by cve.day 2026-11-25T22:59:27.445Z
