Vulnerabilities / CVE-2024-51745

critical

CVE-2024-51745

wasmtime: Wasmtime doesn't fully sandbox all the Windows device filenames

Published Modified CWE 67, 184
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GHSA2.3CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Julia2.3CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (low), Red Hat (low), Julia (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
cargo::GitHub Security Advisory Rustwasmtime24.0.2, 25.0.3, 26.0.1
chainguardwash, wasmcloud, wasmtime and 3 more0.36.1-r2 and 5 more
debian 13rust-wasmtime26.0.1+dfsg-1
debian 14rust-wasmtime26.0.1+dfsg-1
echorust-wasmtime26.0.1+dfsg-1
julia::Julia Ecosystem Security AdvisoriesWasmtime_jll24.0.2+0
rapidfort debian 12rust-wasmtime0:26.0.1+dfsg-1
rapidfort debian 13rust-wasmtime0:26.0.1+dfsg-1
wolfiwash, wasmcloud, wasmtime and 3 more0.36.1-r2 and 5 more
Show all 19 entries from 9 sources
SourcePackageFixed in
cargo::GitHub Security Advisory Rustwasmtime24.0.2, 25.0.3, 26.0.1
chainguardwash0.36.1-r2
chainguardwasmcloud1.4.0-r2
chainguardwasmtime26.0.1-r0
chainguardwizer8.0.0-r0
chainguardzed0.159.10-r1
chainguardzellij0
debian 13rust-wasmtime26.0.1+dfsg-1
debian 14rust-wasmtime26.0.1+dfsg-1
echorust-wasmtime26.0.1+dfsg-1
julia::Julia Ecosystem Security AdvisoriesWasmtime_jll24.0.2+0
rapidfort debian 12rust-wasmtime0:26.0.1+dfsg-1
rapidfort debian 13rust-wasmtime0:26.0.1+dfsg-1
wolfiwash0.36.1-r2
wolfiwasmcloud1.4.0-r2
wolfiwasmtime26.0.1-r0
wolfiwizer8.0.0-r0
wolfized0.159.10-r1
wolfizellij0

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.