CVE-2024-51745 — Vulnerability in wasmtime — CVE Details
Wasmtime doesn't fully sandbox all the Windows device filenames
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.22%). Schedule for your next planned update.
Does your project use an affected wasmtime version?
Paste your Cargo.lock to check it for CVE-2024-51745 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Wasmtime's filesystem sandbox implementation on Windows blocks access to special device filenames such as "COM1", "COM2", "LPT0", "LPT1", and so on, however it did not block access to the special device filenames which use superscript digits, such as "COM¹", "COM²", "LPT⁰", "LPT¹", and so on. Untrusted Wasm programs that are given access to any filesystem directory could bypass the sandbox and access devices through those special device filenames with superscript digits, and through them gain access peripheral devices connected to the computer, or network resources mapped to those devices. This can include modems, printers, network printers, and any other device connected to a serial or parallel port, including emulated USB serial ports.
Patches
Patch releases for Wasmtime have been issued as 24.0.2, 25.0.3, and 26.0.1. Users of Wasmtime 23.0.x and prior are recommended to upgrade to one of these patched versions.
Workarounds
There are no known workarounds for this issue. Affected Windows users are recommended to upgrade.
References
- Microsoft's documentation of the special device filenames
- ISO-8859-1
- The original PR reporting the issue
Advisory Timeline
- First published November 5, 2024 (751 days ago).
- Last revised September 10, 2026 — 673 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p wasmtime --precise 26.0.1
cargo update -p wasmtime --precise 24.0.2
cargo update -p wasmtime --precise 25.0.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: crates.io (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-184
- CWE-67
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.9 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-51745ADVISORY
- https://github.com/bytecodealliance/cap-std/pull/371WEB
- https://en.wikipedia.org/wiki/ISO/IEC_8859-1WEB
- https://github.com/bytecodealliance/wasmtimePACKAGE
- https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventionsWEB
- https://rustsec.org/advisories/RUSTSEC-2024-0438.htmlWEB
Frequently Asked Questions
- What is CVE-2024-51745?
- Wasmtime doesn't fully sandbox all the Windows device filenames. This vulnerability has been assigned a severity rating of LOW (CVSS score: 5.9/10).
- How do I check if my project is affected by CVE-2024-51745?
- CVE-2024-51745 affects wasmtime. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51745 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 68.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-26489CRITICAL
Guest-controlled out-of-bounds read/write on x86\_64
- CVE-2026-34987CRITICAL
Wasmtime with Winch compiler backend on aarch64 may allow a sandbox-escaping memory access
- CVE-2022-39392HIGH
Bug in Wasmtime implementation of pooling instance allocator
- CVE-2022-39393HIGH
Data leakage between instances in the pooling allocator
- CVE-2022-39393HIGH
Wasmtime may have data leakage between instances in the pooling allocator
- CVE-2026-27204MEDIUM
Guest-controlled resource exhaustion in WASI implementations
- CVE-2026-34944MEDIUM
Wasmtime segfault or unused out-of-sandbox load with `f64x2.splat` operator on x86-64
- CVE-2026-27195MEDIUM
Wasmtime is vulnerable to panic when dropping a `[Typed]Func::call_async` future