Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. wasmtime-wasi
  4. ›
  5. CVE-2026-58494

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

October 16, 2026

Wasmtime’s WASI filesystem implementation lets a guest with a read-only source file capability overwrite that file by hard-linking it into another preopen that allows file writes. An attacker who can run a WASI guest can bypass WasiCtxBuilder per-preopen FilePerms and modify host files that were exposed as FilePerms::READ.

This attack is possible through the wasip1, wasip2, and wasip3 interfaces to the WASI filesystem.

This attack is also possible through an indirection of renaming a hardlink into another preopen.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-58494 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 24.0.11, all versions starting from 25.0.0 before 36.0.12, all versions starting from 37.0.0 before 45.0.3, all versions starting from 46.0.0 before 46.0.1

Fixed versions

  • 24.0.11
  • 36.0.12
  • 45.0.3
  • 46.0.1

Solution

Upgrade to versions 24.0.11, 36.0.12, 45.0.3, 46.0.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions
  • CWE-863: Incorrect Authorization

Source file

cargo/wasmtime-wasi/CVE-2026-58494.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 17 Nov 2026 00:16:59 +0000.