Vulnerabilities

CVE-2024-51745

Critical 10.0 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-11-05
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.8 % higher than 53 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
wasmtime (crates.io) < 24.0.2 Affected
wasmtime (crates.io) ≥ 25.0.0, < 25.0.3 Affected
wasmtime (crates.io) ≥ 26.0.0, < 26.0.1 Affected
Bytecodealliance Wasmtime < 24.0.2 Affected
Bytecodealliance Wasmtime 25.0.0 Affected
Bytecodealliance Wasmtime 25.0.1 Affected
Bytecodealliance Wasmtime 25.0.2 Affected
Bytecodealliance Wasmtime 26.0.0 Affected

Weakness type

  • CWE-184: Incomplete List of Disallowed Inputs

    The 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 p…

  • CWE-67: Improper Handling of Windows Device Names

    The 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…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities