CVE-2022-23636: Invalid drop of partially-initialized instances in wasmtime
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 57% of scored vulnerabilities.
Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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
4 scores · 4 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
- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.77%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.77% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu6 products
- mozjs38All versions (No fix recorded)
- mozjs52All versions (No fix recorded)
- mozjs68All versions (No fix recorded)
- mozjs78All versions (No fix recorded)
- mozjs91All versions (No fix recorded)
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
3 vendors · 10 products
References
12 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/security/advisories/GHSA-7f6x-jwh5-m9r4WEBThird Party AdvisoryREPORT
- github.com/bytecodealliance/wasmtime/commit/2ba4bce5cc719e5a74e571a534424614e62ecc41WEBPatchThird Party AdvisoryREPORT
- crates.io/crates/wasmtimePACKAGE