CVE-2026-58494 PUBLISHED

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

Assigner: GitHub_M
Reserved: 30.06.2026 Published: 08.07.2026 Updated: 09.07.2026

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.

Metrics

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

Product Status

Vendor bytecodealliance
Product wasmtime
Versions
  • Version < 24.0.11 is affected
  • Version >= 25.0.0, < 36.0.12 is affected
  • Version >= 37.0.0, < 45.0.3 is affected
  • Version >= 46.0.0, < 46.0.1 is affected

References

Problem Types

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