{"id":"CVE-2024-51745","published":"2024-11-05T21:09:43Z","modified":"2024-11-05T21:28:34Z","title":"Wasmtime doesn't fully sandbox all the Windows device filenames","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01223,"percentile":0.6868,"provenance":"source"},"cwes":[{"id":"CWE-67","name":"Improper Handling of Windows Device Names"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bytecodealliance/cap-std/pull/371","tags":["x_refsource_MISC"]},{"url":"https://en.wikipedia.org/wiki/ISO/IEC_8859-1","tags":["x_refsource_MISC"]},{"url":"https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":13.74},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["< 24.0.2",">= 25.0.0, < 25.0.3","= 26.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-05T21:28:24.494004Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":["<24.0.2",">=25.0.0, <25.0.3",">=26.0.0, <26.0.1",">=0.0.0-0, <24.0.2"],"patched":["24.0.2","25.0.3","26.0.1"],"from":["GHSA-c2f5-jxjv-2hh8","RUSTSEC-2024-0438"],"provenance":"source"}],"summary":{"text":"Wasmtime, the WebAssembly runtime from Bytecode Alliance, has a flaw in its Windows filesystem sandbox: it blocks reserved device filenames such as \"COM1\" and \"LPT1\" but fails to block variants that use superscript digits (for example \"COM¹\"). An attacker who can run untrusted Wasm code with access to any filesystem directory, and who has low privileges and no user interaction is required, could use those superscript device names to reach serial and parallel-port devices, and the network resources mapped to them, escaping the sandbox.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:07Z"},"euvd":{"id":"EUVD-2024-3231","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-30266","published":"2024-04-04","fixed":"19.0.1","kev":false},{"cve":"CVE-2024-47763","published":"2024-10-09","fixed":"25.0.2","kev":false},{"cve":"CVE-2024-47813","published":"2024-10-09","fixed":"25.0.2","kev":false,"link":{"from":"CVE-2024-47813","to":"CVE-2024-51745","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"24.0.1","toFixed":"24.0.2","daysApart":27},{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"25.0.2","toFixed":"25.0.3","daysApart":27}]}},{"cve":"CVE-2024-51745","published":"2024-11-05","fixed":"26.0.1","kev":false},{"cve":"CVE-2025-53901","published":"2025-07-18","fixed":"34.0.2","kev":false,"link":{"from":"CVE-2024-51745","to":"CVE-2025-53901","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"24.0.2","toFixed":"24.0.4","daysApart":255}]}},{"cve":"CVE-2025-62711","published":"2025-10-24","fixed":"38.0.3","kev":false},{"cve":"CVE-2025-64345","published":"2025-11-12","fixed":"38.0.4","kev":false}],"package":"crates.io:wasmtime"}}