cve.bz

CVE-2026-58494 bytecodealliance wasmtime: Improper Preservation of Permissions

6.5 mediumEPSS 0.2%Fix available

Medium (6.5) in bytecodealliance wasmtime. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in wasmtime-wasi 24.0.11, 36.0.12, 45.0.3.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-281 Improper Preservation of Permissions
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58494 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58494?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58494?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58494 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
bytecodealliance wasmtime< 24.0.11
bytecodealliance wasmtime>= 25.0.0, < 36.0.12
bytecodealliance wasmtime>= 37.0.0, < 45.0.3
bytecodealliance wasmtime>= 46.0.0, < 46.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4ch3-9j33-3pmjcrates.iowasmtime-wasi<24.0.1124.0.11
GHSA-4ch3-9j33-3pmjcrates.iowasmtime-wasi>=25.0.0 <36.0.1236.0.12
GHSA-4ch3-9j33-3pmjcrates.iowasmtime-wasi>=37.0.0 <45.0.345.0.3
GHSA-4ch3-9j33-3pmjcrates.iowasmtime-wasi>=46.0.0 <46.0.146.0.1
RUSTSEC-2026-0188crates.iowasmtime-wasi>=0.0.0-0 <24.0.11
>=25.0.0 <36.0.12
>=37.0.0 <45.0.3
>=46.0.0 <46.0.1
24.0.11, 36.0.12, 45.0.3, 46.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13rust-wasmtimeno fix listedDEBIAN-CVE-2026-58494
Debian14rust-wasmtime36.0.12+dfsg-1DEBIAN-CVE-2026-58494
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morerust-wasmtimeno fix listedUBUNTU-CVE-2026-58494

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate-impact flaw in Wasmtime allows a malicious WebAssembly System Interface (WASI) guest to overwrite host files. By exploiting insufficient permission checks during hard-link and rename operations, a guest with read-only file capabilities can modify host files that are exposed with read permissions through WASI filesystem interfaces. This could lead to data integrity issues on the host system.

ProductPackageStateAdvisory
Red Hat Connectivity Link 1rhcl-1/wasm-shim-rhel9Fix deferred
Red Hat Enterprise Linux 10virt-firmware-rsFix deferred
Red Hat Hardened ImagesrustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58494.

References

Check your stackJSON