cve.bz

CVE-2022-23636 bytecodealliance wasmtime: Access of Uninitialized Pointer

8.1 highEPSS 0.8%Fix available

High (8.1) in bytecodealliance wasmtime. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in wasmtime 0.33.1, 0.34.1, 0.38.2.

On this page
Wasmtime is an open source runtime for WebAssembly & WASI. Prior to versions 0.34.1 and 0.33.1, there exists a bug in the pooling instance allocator in Wasmtime's runtime where a failure to instantiate an instance for a module that defines an `externref` global will result in an invalid drop of a `VMExternRef` via an uninitialized pointer. A number of conditions listed in the GitHub Security Advisory must be true in order for an instance to be vulnerable to this issue. Maintainers believe that the effective impact of this bug is relatively small because the usage of `externref` is still uncommon and without a resource limiter configured on the `Store`, which is not the default configuration, it is only possible to trigger the bug from an error returned by `mprotect` or `VirtualAlloc`. Note that on Linux with the `uffd` feature enabled, it is only possible to trigger the bug from a resource limiter as the call to `mprotect` is skipped. The bug has been fixed in 0.34.1 and 0.33.1 and users are encouraged to upgrade as soon as possible. If it is not possible to upgrade to version 0.34.1 or 0.33.1 of the `wasmtime` crate, it is recommend that support for the reference types proposal be disabled by passing `false` to `Config::wasm_reference_types`. Doing so will prevent modules that use `externref` from being loaded entirely.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-824 Access of Uninitialized Pointer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23636 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23636?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23636?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23636 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
bytecodealliance:wasmtimebefore 0.33.1
bytecodealliance:wasmtime0.34.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7f6x-jwh5-m9r4crates.iowasmtime<0.38.20.38.2
GHSA-7f6x-jwh5-m9r4crates.iocranelift-codegen<0.85.20.85.2
GHSA-88xq-w8cq-xfg7crates.iowasmtime>=0.34.0 <0.34.10.34.1
GHSA-88xq-w8cq-xfg7crates.iowasmtime<0.33.10.33.1
RUSTSEC-2022-0096crates.iowasmtime>=0.0.0-0 <0.33.1
>=0.34.0 <0.34.1
0.33.1, 0.34.1
RUSTSEC-2022-0101crates.iowasmtime>=0.0.0-0 <0.38.20.38.2

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON