BreachSpiderVerified, not vibes

CVE-2022-31169 in Bytecodealliance Cranelift-Codegen and 1 more product

High 7.5

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 p...

Affects 2 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.0%
EPSS percentile61th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Bytecodealliance Cranelift-Codegen < 0.85.1
Bytecodealliance Wasmtime < 0.38.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-31169
BreachSpider IDBS-2022-GLOBAL-319246-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2022-07-22
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-682: CWE-682

Related attack patterns (CAPEC)

CAPEC-128 Integer Attacks via CWE-682

CAPEC-129 Pointer Manipulation via CWE-682

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A bug in Wasmtime's code generator, Cranelift, for AArch64 targets can result in incorrect division results at runtime due to improper handling of constant divisors. This affects Wasmtime prior to version 0.38.2 and Cranelift prior to 0.85.2, specifically on the AArch64 platform.

The vulnerability arises from incorrect translation rules for constants in the code generation process of Cranelift, leading to potential incorrect division results. This could be exploited by an attacker to cause unexpected behavior or potentially execute arbitrary code if the incorrect results are used in security-critical computations.

Questions

What is CVE-2022-31169?

A bug in Wasmtime's code generator, Cranelift, for AArch64 targets can result in incorrect division results at runtime due to improper handling of constant divisors. This affects Wasmtime prior to version 0.38.2 and Cranelift prior to 0.85.2, specifically on the AArch64 platform.

What is the CVSS score for CVE-2022-31169?

CVE-2022-31169 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.0%.

Is CVE-2022-31169 actively exploited?

No confirmed active exploitation of CVE-2022-31169 as of 2026-09-25.

How do I remediate CVE-2022-31169?

Priority: HIGH.

What systems are affected by CVE-2022-31169?

CVE-2022-31169 affects Bytecodealliance Cranelift-Codegen, Wasmtime.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Bytecodealliance","product":"Cranelift-Codegen","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.