Home / bytecodealliance / wasmtime / CVE-2022-39392
CVE-2022-39392: is it exploited, and which versions of bytecodealliance wasmtime are affected and fixed?
CVE-2022-39392 is a memory corruption (buffer overflow) vulnerability in bytecodealliance wasmtime. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: wasmtime from 2.0.0 before 2.0.2 and wasmtime before 1.0.2 (GitHub advisory GHSA-44mr-8vmm-wjhg). Fixed in 2.0.2 and 1.0.2 (GitHub advisory GHSA-44mr-8vmm-wjhg). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:44 UTC.
What is CVE-2022-39392?
Wasmtime vulnerable to out of bounds read/write with zero-memory-pages configuration
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.
From the CVE record by GitHub_M, last updated April 23, 2025, 16:39 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| bytecodealliance | wasmtime | < 2.0.2 |
As the CVE record by GitHub_M states it, last updated April 23, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | wasmtime | >= 2.0.0, < 2.0.2 | 2.0.2 | GHSA-44mr-8vmm-wjhg |
| crates.io | wasmtime | < 1.0.2 | 1.0.2 | GHSA-44mr-8vmm-wjhg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 2, 2025. Summary: Wasmtime out of bounds read/write with zero-memory-pages configuration.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| bytecodealliance | wasmtime | before 1.0.2 | application |
| bytecodealliance | wasmtime | from 2.0.0 before 2.0.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:58 UTC.
How severe is CVE-2022-39392?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-39392 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, April 23, 2025)
- EPSS
- 0.84% probability of exploitation activity in the next 30 days, percentile 59.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-125 Out-of-bounds Read
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-44mr-8vmm-wjhg
- https://github.com/bytecodealliance/wasmtime/commit/e60c3742904ccbb3e26da201c9221c38a4981d72
When was it published, and where is the official record?
- Reserved
- September 2, 2022
- Published
- November 10, 2022, 00:00 UTC
- CVE record updated
- April 23, 2025, 16:39 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:58 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:44 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect wasmtime?
- Dec 1, 2026CVE-2026-140414 bytecodealliance wasmtime: reachable assertion (crash)
- Dec 1, 2026CVE-2026-140415 bytecodealliance wasmtime: denial of service (uncontrolled resource consumption)
- Dec 1, 2026CVE-2026-140416 bytecodealliance wasmtime: reachable assertion (crash)
- Dec 1, 2026CVE-2026-140417 bytecodealliance wasmtime: reachable assertion (crash)
- Dec 1, 2026CVE-2026-140418 bytecodealliance wasmtime: reachable assertion (crash)
- Dec 1, 2026CVE-2026-140419 bytecodealliance wasmtime: out-of-bounds read
- Dec 1, 2026CVE-2026-140420 bytecodealliance wasmtime: denial of service (resources allocated without limits)
- Dec 1, 2026CVE-2026-140421 bytecodealliance wasmtime: improper Validation of Specified Type of Input
Questions about CVE-2022-39392
Is CVE-2022-39392 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.84% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of bytecodealliance wasmtime are affected by CVE-2022-39392?
wasmtime from 2.0.0 before 2.0.2 and wasmtime before 1.0.2, per the GitHub advisory GHSA-44mr-8vmm-wjhg. The tables above give every range the sources list.
Which version fixes CVE-2022-39392?
2.0.2 and 1.0.2, per the GitHub advisory GHSA-44mr-8vmm-wjhg. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-39392?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-39392?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.