CVE-2024-51745: bytecodealliance wasmtime
Vulnerability summary
CVE-2024-51745 is a critical (CVSS 10.0) vulnerability in bytecodealliance wasmtime. EPSS estimates a 0.84% chance of exploitation in the next 30 days, higher than 57% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 6Timeline
- 05-11-2024PublishedVulnerability first disclosed.
- 05-11-2024Last modifiedVulnerability information updated.
Description
Wasmtime is a fast and secure runtime for WebAssembly. 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. 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. There are no known workarounds for this issue. Affected Windows users are recommended to upgrade.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- OSV · Crates.ioEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- NVDNIST2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.84%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
0.00 pp
From 0.84% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-67Improper Handling of Windows Device NamesThe product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.
- CWE-184Incomplete List of Disallowed InputsThe product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.
Affected systems
Chainguard9 products
- wash< 0.36.1-r2
- wasmcloud< 1.4.0-r2
- wasmtime< 26.0.1-r0
- wizer< 8.0.0-r0
- zed< 0.159.10-r1
Wolfi9 products
- wash< 0.36.1-r2
- wasmcloud< 1.4.0-r2
- wasmtime< 26.0.1-r0
- wizer< 8.0.0-r0
- zed< 0.159.10-r1
Bytecodealliance1 product
- wasmtime≥ 25.0.0, < 25.0.3 | = 26.0.0 | < 24.0.2 | 25.0.0 | 25.0.1 | 25.0.2 | 26.0.0
Crates.Io1 product
- wasmtime< 24.0.2 | ≥ 25.0.0, < 25.0.3 | ≥ 26.0.0, < 26.0.1
Debian1 product
- rust-wasmtime< 26.0.1+dfsg-1
5 vendors · 21 products
References
11 links- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8X Refsource CONFIRMAdvisoryWEBVendor Advisory
- crates.io/crates/wasmtimePACKAGE