Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-30624

published low CVSS 3.1 · 3.9

Wasmtime has Undefined Behavior in Rust runtime functions

Published
27 Apr 2023, 16:56:49 UTC
Updated
30 Jan 2025, 19:33:32 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
bytecodealliance — wasmtime< 6.0.2 · = 7.0.0 · = 8.0.0 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluationALAS2ECS-2023-007 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-344 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 ecs-service-connect-agentaarch64 Listed in advisory Not stated ALAS2ECS-2023-007
Amazon Linux AL2 ecs-service-connect-agentsrc Listed in advisory Not stated ALAS2ECS-2023-007
Amazon Linux AL2 ecs-service-connect-agentx86_64 Listed in advisory Not stated ALAS2ECS-2023-007
Amazon Linux AL2023 ecs-service-connect-agentaarch64 Listed in advisory Not stated ALAS2023-2023-344
Amazon Linux AL2023 ecs-service-connect-agentsrc Listed in advisory Not stated ALAS2023-2023-344
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 ecs-service-connect-agentx86_64 Listed in advisory Not stated ALAS2023-2023-344

Description

Wasmtime is a standalone runtime for WebAssembly. Prior to versions 6.0.2, 7.0.1, and 8.0.1, Wasmtime's implementation of managing per-instance state, such as tables and memories, contains LLVM-level undefined behavior. This undefined behavior was found to cause runtime-level issues when compiled with LLVM 16 which causes some writes, which are critical for correctness, to be optimized away. Vulnerable versions of Wasmtime compiled with Rust 1.70, which is currently in beta, or later are known to have incorrectly compiled functions. Versions of Wasmtime compiled with the current Rust stable release, 1.69, and prior are not known at this time to have any issues, but can theoretically exhibit potential issues. The underlying problem is that Wasmtime's runtime state for an instance involves a Rust-defined structure called `Instance` which has a trailing `VMContext` structure after it. This `VMContext` structure has a runtime-defined layout that is unique per-module. This representation cannot be expressed with safe code in Rust so `unsafe` code is required to maintain this state. The code doing this, however, has methods which take `&self` as an argument but modify data in the `VMContext` part of the allocation. This means that pointers derived from `&self` are mutated. This is typically not allowed, except in the presence of `UnsafeCell`, in Rust. When compiled to LLVM these functions have `noalias readonly` parameters which means it's UB to write through the pointers. Wasmtime's internal representation and management of `VMContext` has been updated to use `&mut self` methods where appropriate. Additionally verification tools for `unsafe` code in Rust, such as `cargo miri`, are planned to be executed on the `main` branch soon to fix any Rust-level issues that may be exploited in future compiler versions. Precomplied binaries available for Wasmtime from GitHub releases have been compiled with at most LLVM 15 so are not known to be vulnerable. As mentioned above, however, it's still recommended to update. Wasmtime version 6.0.2, 7.0.1, and 8.0.1 have been issued which contain the patch necessary to work correctly on LLVM 16 and have no known UB on LLVM 15 and earlier. If Wasmtime is compiled with Rust 1.69 and prior, which use LLVM 15, then there are no known issues. There is a theoretical possibility for undefined behavior to exploited, however, so it's recommended that users upgrade to a patched version of Wasmtime. Users using beta Rust (1.70 at this time) or nightly Rust (1.71 at this time) must update to a patched version to work correctly.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
3.9 / 10
Severity
low
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
bytecodealliance wasmtime < 6.0.2 (affected)= 7.0.0 (affected)= 8.0.0 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-758 CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior (GitHub_M · cna)

References

2

Provider assertions

3

GitHub_M · cna

Wasmtime has Undefined Behavior in Rust runtime functions

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
099215825462896e1a363a6f47ea0f547a0babfaec7948425b2e781e9400503c
Ingested
23 Sep 2026, 08:08:27 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected