7.5

CVE-2022-23636: bytecodealliance cranelift-codegen Access of Uninitialized Pointer

CVSS: 7.5v3.1HighModified
AliasesGHSA-7f6x-jwh5-m9r4CVE-2022-31169GHSA-88xq-w8cq-xfg7
Published 16-02-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-23636 is a high (CVSS 7.5) Access of Uninitialized Pointer vulnerability in bytecodealliance cranelift-codegen. EPSS estimates a 0.77% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.77%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 16-02-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.77%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

0.00 pp

From 0.77% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.77%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Bytecodealliance2 products
Crates.Io2 products
  • cranelift-codegen< 0.85.2
  • wasmtime< 0.38.2 | < 0.33.1 | ≥ 0.34.0, < 0.34.1 | ≥ 0.0.0-0, < 0.38.2

2 vendors · 4 products

References

10 links