BreachSpiderVerified, not vibes

CVE-2022-23636 in Bytecodealliance Wasmtime

High 8.1

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 a...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.1
EPSS0.7%
EPSS percentile50th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Bytecodealliance Wasmtime 0.34.0 < 0.33.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-23636
BreachSpider IDBS-2022-GLOBAL-313546-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2022-02-16
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-824: CWE-824

Analysis AI-written, not human-reviewed

A vulnerability in Wasmtime's pooling instance allocator prior to versions 0.34.1 and 0.33.1 can lead to an invalid drop of a VMExternRef via an uninitialized pointer when a module defines an externref global.

An attacker could exploit this vulnerability by crafting a malicious WebAssembly module that defines an externref global, causing the Wasmtime runtime to improperly handle the instantiation of the module and potentially leading to memory corruption or arbitrary code execution.

Questions

What is CVE-2022-23636?

A vulnerability in Wasmtime's pooling instance allocator prior to versions 0.34.1 and 0.33.1 can lead to an invalid drop of a VMExternRef via an uninitialized pointer when a module defines an externref global.

What is the CVSS score for CVE-2022-23636?

CVE-2022-23636 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.7%.

Is CVE-2022-23636 actively exploited?

No confirmed active exploitation of CVE-2022-23636 as of 2026-09-25.

How do I remediate CVE-2022-23636?

Priority: HIGH.

What systems are affected by CVE-2022-23636?

CVE-2022-23636 affects Bytecodealliance Wasmtime.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Bytecodealliance","product":"Wasmtime","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.