Skip to main content
No exploitation reportedFix available

CVE-2022-39392

No exploitation reported by the sources we read.

  • Published2022-11-10
  • Fixed in2.0.2 · 1.0.2
  • WeaknessCWE-119 · CWE-125 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Wasmtime is a standalone runtime for WebAssembly. Prior to version 2.0.2, there is a bug in Wasmtime's implementation of its pooling instance allocator when the allocator is configured to give WebAssembly instances a maximum of zero pages of memory. In this configuration, the virtual memory mapping for WebAssembly memories did not meet the compiler-required configuration requirements for safely executing WebAssembly modules. Wasmtime's default settings require virtual memory page faults to indicate that wasm reads/writes are out-of-bounds, but the pooling allocator's configuration would not create an appropriate virtual memory mapping for this meaning out of bounds reads/writes can successfully read/write memory unrelated to the wasm sandbox within range of the base address of the memory mapping created by the pooling allocator. This bug is not applicable with the default settings of the `wasmtime` crate. This bug can only be triggered by setting `InstanceLimits::memory_pages` to zero. This is expected to be a very rare configuration since this means that wasm modules cannot allocate any pages of linear memory. All wasm modules produced by all current toolchains are highly likely to use linear memory, so it's expected to be unlikely that this configuration is set to zero by any production embedding of Wasmtime. This bug has been patched and users should upgrade to Wasmtime 2.0.2. This bug can be worked around by increasing the `memory_pages` allotment when configuring the pooling allocator to a value greater than zero. If an embedding wishes to still prevent memory from actually being used then the `Store::limiter` method can be used to dynamically disallow growth of memory beyond 0 bytes large. Note that the default `memory_pages` value is greater than zero.

Timeline

dates in UTC
  1. 2022-11-1020:15CVE publishedNVD

Versions per branch

NVD · OSV
Bytecodealliance wasmtime
BranchAffectedFixed in
2.0≥ 2.0.0, < 2.0.22.0.2
1.0< 1.0.21.0.2
1.0≥ 0.0.0-0, < 1.0.21.0.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • bytecodealliance wasmtime
    Affected
    • = < 2.0.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-11-10

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • mozjs38Ubuntu:18.04:LTSall versions · no fixed version listedand 1 other package
  • mozjs52Ubuntu:20.04:LTSall versions · no fixed version listedand 1 other package
  • mozjs78Ubuntu:22.04:LTSall versions · no fixed version listedand 2 other packages
  • thunderbirdUbuntu:24.04:LTSall versions · no fixed version listed

Full record on NVD

Fix

  1. Update Bytecodealliance wasmtime to 2.0.2 · 1.0.2

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-04-23
  • CNACVSS 3.15.9known since 2026-10-23
  • NVDCVSS 3.17.4read 2026-10-23
  • CNAweakness (CWE)CWE-119, CWE-125, CWE-787known since 2026-10-23
  • NVDweakness (CWE)CWE-125, CWE-787read 2026-10-23
  • FIRST EPSSEPSS score0.8 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2022-11-10

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2022-11-10
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-44mr-8vmm-wjhg

Frequently asked questions

What is CVE-2022-39392?

Wasmtime is a standalone runtime for WebAssembly. Prior to version 2.0.2, there is a bug in Wasmtime's implementation of its pooling instance allocator when the allocator is configured to give WebAssembly instances a maximum of zero pages of memory. In this configuration, the virtual memory mapping for WebAssembly memories did not meet the compiler-required configuration requirements for safely executing WebAssembly modules. Wasmtime's default settings require virtual memory page faults to indicate that wasm reads/writes are out-of-bounds, but the pooling allocator's configuration would not create an appropriate virtual memory mapping for this meaning out of bounds reads/writes can successfully read/write memory unrelated to the wasm sandbox within range of the base address of the memory mapping created by the pooling allocator. This bug is not applicable with the default settings of the `wasmtime` crate. This bug can only be triggered by setting `InstanceLimits::memory_pages` to zero. This is expected to be a very rare configuration since this means that wasm modules cannot allocate any pages of linear memory. All wasm modules produced by all current toolchains are highly likely to use linear memory, so it's expected to be unlikely that this configuration is set to zero by any production embedding of Wasmtime. This bug has been patched and users should upgrade to Wasmtime 2.0.2. This bug can be worked around by increasing the `memory_pages` allotment when configuring the pooling allocator to a value greater than zero. If an embedding wishes to still prevent memory from actually being used then the `Store::limiter` method can be used to dynamically disallow growth of memory beyond 0 bytes large. Note that the default `memory_pages` value is greater than zero.

Is CVE-2022-39392 actively exploited?

Active exploitation of CVE-2022-39392 has not been confirmed. Its EPSS score was 0.8% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

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

CVE-2022-39392 has a CVSS v3 base score of 7.4 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running wasmtime? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record