Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2022-39392
bytecodealliance wasmtime

Score7.4 High
CVSS 3.1
Exploit probability (EPSS)0.80%
within the next 30 days
CategoryMemory corruption
Published10 November 2022
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: reading confidential data, modifying data.

Special conditions are required for a successful attack, which makes exploitation harder.

Weakness type: Buffer bounds violation.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

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

CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Weakness: CWE-119 – Buffer bounds violation, CWE-125 – Out-of-bounds read, CWE-787 – Out-of-bounds write

Affected products

VendorProductVersions
bytecodealliancewasmtime<1.0.2
bytecodealliancewasmtime>=2.0.0 <2.0.2

Sources

Latest in the same category

  • CVE-2026-140121 Medium 6.8
    GPAC through 26.07.0 contains a NULL pointer dereference vulnerability in mp4_mux_cenc_update() in src/filters/mux_isom.c that allows attackers to crash the process. Attackers can supply a crafted MP4 file with…
    Memory corruption · 1 December 2026
  • CVE-2026-104931 Medium 4.6
    Since the control-transfer rework in the device_next USB device stack, usbd_handle_ctrl_xfer() in subsys/usb/device_next/usbd_ch9.c calls a class's control_to_dev handler with a NULL buffer when a host-to-device…
    Memory corruption · 1 December 2026
  • CVE-2026-140037 High 7.1
    GPAC through 26.07.0 contains a stack-based buffer overflow in SDP_IsDynamicPayload() in src/ietf/sdp.c that allows attackers to overflow a 10-byte stack buffer via out-of-range rtpmap payload types. Attackers can…
    Memory corruption · 30 November 2026
  • CVE-2026-140036 Medium 6.8
    GPAC through 26.07.0 contains a NULL pointer dereference vulnerability in gf_scene_ns_new() in src/compositor/scene_ns.c that passes unchecked gf_url_concatenate() results to strchr(). Attackers can supply a crafted…
    Memory corruption · 30 November 2026
  • CVE-2026-140035 Medium 6.8
    Fraunhofer HHI VVdeC 3.3.0 contains a NULL pointer dereference vulnerability in Picture::getSubPicBuf() that allows attackers to crash the decoder via broken reference pictures. Attackers can supply a crafted…
    Memory corruption · 30 November 2026
  • CVE-2026-140034 Medium 6.8
    Fraunhofer HHI VVdeC 3.3.0 contains a NULL pointer dereference vulnerability in DecLibParser::xDecodeSliceHead() that allows attackers to crash the decoder by supplying crafted VVC bitstreams. Attackers can leave a…
    Memory corruption · 30 November 2026