CVE-2022-23636: bytecodealliance cranelift-codegen Access of Uninitialized Pointer
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.
Timeline
- 16-02-2022PublishedVulnerability first disclosed.
- 23-04-2025Last 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- CVE.orgCNA5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · Crates.ioEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Bytecodealliance2 products
- cranelift-codegen< 0.85.1
- wasmtime< 0.33.0 | = 0.34.0 | < 0.38.1 | < 0.33.1 | 0.34.0
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- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-88xq-w8cq-xfg7X Refsource CONFIRMWEBMitigationThird Party Advisory
- github.com/bytecodealliance/wasmtime/commit/886ecc562040bef61faf19438c22285c2d62403aX Refsource MISCWEBPatchThird Party Advisory
- github.com/bytecodealliance/wasmtime/commit/2ba4bce5cc719e5a74e571a534424614e62ecc41WEBPatchThird Party Advisory
- crates.io/crates/wasmtimePACKAGE