CVE-2024-51745 json
Wasmtime doesn't fully sandbox all the Windows device filenames
published 2024-11-02 2 y ago modified 2026-10-12 27 d ago also EUVD-2024-3231 , GHSA-c2f5-jxjv-2hh8 , JLSEC-2026-1348 , RUSTSEC-2024-0438
- cvss
- 10.0
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io wasmtime 24.0.2, 25.0.3, 26.0.1
- julia Wasmtime_jll 24.0.2+0
- bytecodealliance wasmtime 24.0.2, 25.0.3, 26.0.1
- rust-wasmtime Debian 14, Debian 13 26.0.1+dfsg-1
debian advisories DEBIAN-CVE-2024-51745
- github.com/bytecodealliance/cap-std#371 pull request
- github.com/bytecodealliance/wasmtime#9559 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-51745 updated
wasmtime: Wasmtime doesn't fully sandbox all the Windows device filenames
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-validation-rhel9 Red Hat Trusted Artifact Signer ec-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.3 | 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 |
| CNA | 4.0 | 2.3 | 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:X |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | wasmtime | <24.0.2 >=25.0.0, <25.0.3 >=26.0.0, <26.0.1 >=0.0.0-0, <24.0.2 |
24.0.2 25.0.3 26.0.1 |
| julia | Wasmtime_jll | <24.0.2+0 |
24.0.2+0 |
Affected products
- bytecodealliance wasmtime
Classification
References
-
github.com
/bytecodealliance/cap-std/pull/371
web, patch
-
github.com
/bytecodealliance/wasmtime/pull/9559
web
-
github.com
/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8
web, vendor-advisory
-
en.wikipedia.org
/wiki/ISO/IEC_8859-1
web, product
-
learn.microsoft.com
/en-us/windows/win32/fileio/naming-a-file#naming-conventions
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-51745
advisory, web
-
github.com
/bytecodealliance/wasmtime
package
-
rustsec.org
/advisories/RUSTSEC-2024-0438.html
web, advisory
-
github.com
/advisories/GHSA-c2f5-jxjv-2hh8
web
-
crates.io
/crates/wasmtime
package
Sources
- CVE List CVE-2024-51745
- GitHub Advisory GHSA-c2f5-jxjv-2hh8
- NVD CVE-2024-51745
- OSV JLSEC-2026-1348
- OSV RUSTSEC-2024-0438
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.