GHSA-7f6x-jwh5-m9r4 · Severity: medium · Ecosystem: rust — Cranelift vulnerable to miscompilation of constant values in division on AArch64
Wasmtime is a standalone runtime for WebAssembly. There is a bug in Wasmtime's code generator, Cranelift, for AArch64 targets where constant divisors can result in incorrect division results at runtime. This affects Wasmtime prior to version 0.38.2 and Cranelift prior to 0.85.2. This issue only affects the AArch64 platform. Other platforms are not affected. The translation rules for constants did not take into account whether sign or zero-extension should happen which resulted in an incorrect value being placed into a register when a division was encountered. The impact of this bug is that programs executing within the WebAssembly sandbox would not behave according to the WebAssembly specification. This means that it is hypothetically possible for execution within the sandbox to go awry and WebAssembly programs could produce unexpected results. This should not impact hosts executing WebAssembly but does affect the correctness of guest programs. This bug has been patched in Wasmtime version 0.38.2 and cranelift-codegen 0.85.2. There are no known workarounds.
Conclusion & alert: CVE-2022-31169 is rated Moderate Risk (40/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.65%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.43% | 0.65% | +0.23% |
| 2 | 2026-06-01 | 0.29% | 0.43% | +0.13% |
| 3 | 2026-01-08 | — | 0.29% | — |
Full EPSS history (11 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.9 | 3.1 | MEDIUM |
|
2.2 | 3.6 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-7f6x-jwh5-m9r4 · Severity: medium · Ecosystem: rust — Cranelift vulnerable to miscompilation of constant values in division on AArch64
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2022-31169 unimportant priority: Debian including 1 source packages (rust-wasmtime), 3 status rows across 3 suites (forky, sid, trixie): resolved 3. | https://security-tracker.debian.org/tracker/CVE-2022-31169 |
ubuntu
|
medium | CVE-2022-31169 medium priority: Ubuntu including 7 source packages (firefox, mozjs38, …), 70 status rows across 10 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, trusty, upstream, xenial): DNE 41, ignored 22, not-affected 5, needs-triage 2. | https://ubuntu.com/security/CVE-2022-31169 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| bytecodealliance | cranelift-codegen | < 0.85.1 | cpe:2.3:a:bytecodealliance:cranelift-codegen:*:*:*:*:*:rust:*:* |
| bytecodealliance | wasmtime | < 0.38.1 | cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
| URL | Tags |
|---|---|
| https://github.com/bytecodealliance/wasmtime/commit/2ba4bce5cc719e5a74e571a534424614e62ecc41 | Patch Third Party Advisory |
| https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-7f6x-jwh5-m9r4 | Third Party Advisory |