Wasmtime: Preemption and traps during bulk operations enable breaking internal VM state
### Impact Wasmtime's implementation of bulk-data-transfer WebAssembly instructions, such as `memory.copy`, contains a vulnerability when a preemption via epochs or fuel is combined with altering the store's state or cancelling a computation. To prevent these operations from taking too long Wasmtime injects fuel/epoch checks during these operations, but this enables embedders, and possible WebAssembly, to witness intermediate state in the middle of the operation. Examples of this include: * When a non-nullable WebAssembly table is grown the new elements initially start as null and are filled in as part of a loop with preemption checks. If this computation is then cancelled this left the table in a grown-but-uninitialized state where subsequent usage via WebAssembly could possibly segfault. Loads from this table are assumed to not be null due to its type, but the runtime implementation was exposed through this cancellation at a preemption point. * Embedders could mutate the store during an epoch callback, such as growing a WebAssembly linear memory. During a bulk `memory.copy` operation, however, the pointers being copied to/from weren't recomputed between preemption points. This meant that if the linear memory moved its base address it could be possible to have a preemption, the embedder manually grows memory, and then on resumption the copy operation uses invalid pointers. * Embedders could execute a GC during epoch callbacks. GC operations such as `array.copy`, like `memory
GHSA-2hw9-mc66-jc2q
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-2hw9-mc66-jc2q
wasmtime
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 46.0.2
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
wasmtime
Source reference: /affected/1/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 47.0.3
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "46.0.0"
},
{
"fixed": "46.0.2"
}
]
}
],
"package": {
"name": "wasmtime",
"purl": "pkg:cargo/wasmtime",
"ecosystem": "crates.io"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2hw9-mc66-jc2q/GHSA-2hw9-mc66-jc2q.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "47.0.0"
},
{
"fixed": "47.0.3"
}
]
}
],
"package": {
"name": "wasmtime",
"purl": "pkg:cargo/wasmtime",
"ecosystem": "crates.io"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2hw9-mc66-jc2q/GHSA-2hw9-mc66-jc2q.json"
}
}
]- Related CVEs
- CVE-2026-104855
Source reference:
/aliases
Publisher severity
low
Source reference: /database_specific/severity
- Event
- #72685 · Revision 1
- Added to Heist Feed
- Publisher date