GHSA-mghf-wjfp-p5xm

Suggest an improvement
Source
https://github.com/advisories/GHSA-mghf-wjfp-p5xm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-mghf-wjfp-p5xm/GHSA-mghf-wjfp-p5xm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mghf-wjfp-p5xm
Aliases
Downstream
CGA (5)
Published
2026-10-28T21:14:14Z
Modified
2026-10-28T21:30:05Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Wasmtime: Cranelift backend on aarch64 can jump to incorrect target on large Wasm `br_table` instruction
Details

Summary

When running with the Cranelift compiler backend on an aarch64 target, Wasmtime can compile a Wasm module with more than ~256k targets on one br_table instruction in a way that results in an incorrect conditional branch target. This conditional branch could then jump to arbitrary other code (at an user-controlled offset), leading to arbitrary sandbox escapes.

Impact

Any Wasmtime engine running on aarch64 with default settings can be forced to jump to arbitrary code by a user-controlled Wasm module. All versions of Wasmtime/Cranelift that support aarch64, since the initial release of that support in 2020 (before Wasmtime v1.0), are affected.

Patches

Wasmtime v36.0.19, v48.0.7, and v49.0.4 have been released which all fix this issue.

Database specific
{
    "cwe_ids":  [
        "CWE-691"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-28T21:14:14Z",
    "nvd_published_at":  "2026-10-23T22:16:58Z",
    "severity":  "CRITICAL"
}
References

Affected packages

crates.io / wasmtime

Package

Name
wasmtime
View open source insights on deps.dev
Purl
pkg:cargo/wasmtime

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
36.0.19

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-mghf-wjfp-p5xm/GHSA-mghf-wjfp-p5xm.json"

crates.io / wasmtime

Package

Name
wasmtime
View open source insights on deps.dev
Purl
pkg:cargo/wasmtime

Affected ranges

Type
SEMVER
Events
Introduced
37.0.0
Fixed
48.0.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-mghf-wjfp-p5xm/GHSA-mghf-wjfp-p5xm.json"

crates.io / wasmtime

Package

Name
wasmtime
View open source insights on deps.dev
Purl
pkg:cargo/wasmtime

Affected ranges

Type
SEMVER
Events
Introduced
49.0.0
Fixed
49.0.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-mghf-wjfp-p5xm/GHSA-mghf-wjfp-p5xm.json"