SecurityContext

CVE-2024-51745: Wasmtime - Sandbox Bypass

  • Cve: CVE-2024-51745
  • Name: Wasmtime - Sandbox Bypass
  • 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.
  • Impact: Untrusted Wasm programs can bypass sandbox and access peripheral devices or network resources via special device filenames with superscript digits.
  • Remediation: Upgrade to Wasmtime versions 24.0.2, 25.0.3, or 26.0.1.
  • Vulnerability type: sandbox_bypass
  • Vulnerability impact: file_system_read, file_system_write, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 10
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.00836
  • Epss percentile: 0.5847
  • Assignee: [email protected]
  • Published at: 2024-11-05T22:15:21Z
  • Age in days: 749
  • Modified at: 2026-06-17T08:06:14Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-51745
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-67Improper Handling of Windows Device Names

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/bytecodealliance/cap-std/pull/371Patch
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8Vendor Advisory
https://en.wikipedia.org/wiki/ISO/IEC_8859-1Product
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventionsProduct

Products

ProductAffectedPlatform boundSourcesUrl
bytecodealliance:wasmtime= 26.0.0, = 25.0.2, = 25.0.1, = 25.0.0, < 24.0.2nonvd/v1/products/bytecodealliance/wasmtime

Projects

RepositoryLink kindsIndexedUrl
bytecodealliance/wasmtimepackage, security_advisoryyes/v1/repositories/bytecodealliance/wasmtime
bytecodealliance/cap-stdpullyes/v1/repositories/bytecodealliance/cap-std

Index

  • Repositories: 52
  • Repositories high signal: 36
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts