Skip to content
Fencer Vulns
medium 6.5

CVE-2026-58494 json

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

published 2026-06-24 4 mo ago modified 2026-10-25 14 d ago also EUVD-2026-42393 , GHSA-4ch3-9j33-3pmj , JLSEC-2026-1368 , RUSTSEC-2026-0188

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 6%
public exploits
0
none known

Summary

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.

Patch / fix

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-58494 updated cvss 6.5

wasmtime: Wasmtime: Overwrite host files via insufficient permission checks in wasmtime-wasi

  • Red Hat Connectivity Link 1 rhcl-1/wasm-shim-rhel9 Red Hat Enterprise Linux 10 virt-firmware-rs 26.4-1.el10
    affected: no fix available “Fix deferred”
  • Red Hat Hardened Images rust 1.96.1-1.hum1
    not affected: component not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
4 mo ago

Exploit prediction

0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
GitHub 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
OSV 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
crates.io wasmtime-wasi
<24.0.11
>=25.0.0, <36.0.12
>=37.0.0, <45.0.3
>=46.0.0, <46.0.1
>=0.0.0-0, <24.0.11
24.0.11
36.0.12
45.0.3
46.0.1
julia Wasmtime_jll
<46.0.1+0
46.0.1+0

Affected products

  • bytecodealliance wasmtime

Classification

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

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.