CVE-2024-51745
Bytecodealliance Wasmtime ≤ 24.0.2
Raw vector
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/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:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-51745 is a low-severity Improper Handling of Windows Device Names (CWE-67) vulnerability in Bytecodealliance Wasmtime. Its CVSS base score is 2.3 (Low).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 41% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-3231
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 2 hardening rules · 1 OS baseline
V3.5.2V4.4.2V16.2.5
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly stops construction of pathnames containing Windows device names from untrusted data.
Secure engineering principles include safe pathname construction and device-name filtering.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input validation and safe pathname handling that prevent device-name misuse.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development can detect and prevent device-name pathname vulnerabilities.
Training on secure input handling can make some developers aware of Windows device name pitfalls and filter them, but this is a niche implementation detail that most general awareness training will not cover, so only a minority of instances are prevented.
Secure coding standards directly address proper handling of Windows reserved device names in pathnames.
A.8.30 carries secure design, coding and testing practice (8.25–8.29) into outsourced work via contract, so a faithful implementation reduces ordinary software implementation defects like improper handling of Windows device names; the clause's ceiling on `prevents` is `partial` because the effect depends on the supplier's actual practice.
A.8.8's reach is DISCLOSURE — it sees only instances carrying a vendor-published flaw. CWE-67 is primarily a first-party implementation defect in how applications construct pathnames, and A.8.8's scanning/vulnerability-management programme does not inspect first-party source. The minority it does find is the slice where a third-party component ships with this weakness and it has been published as a CVE (the observed examples are historical CVEs in specific products), which is a bounded but small share of the class.