Vulnerabilityin bytecodealliance wasmtime.
Proof of concept public (GitHub).
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`.
- Upgrade wasmtime (crates.io) to 0.33.1, 0.34.1, 0.38.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Jan 2022CVE ID reserved by GitHub_M.
- 16 Feb 2022Published in the CVE List.
- 23 Apr 2025CVE record last updated.
- 27 Apr 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other wasmtime vulnerabilities
Same weakness:
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2022-23636: Vulnerability in bytecodealliance wasmtime. https://patchminder.com/cve/cve-2022-23636/ (accessed 5 December 2026).