Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-39392

5.9 · MEDIUM
Published Nov 10, 2022 bytecodealliance CWE-119 EPSS 0.60% (46th pctl)

Overview

CVE-2022-39392 is a medium-severity vulnerability affecting bytecodealliance wasmtime. It was published on November 10, 2022 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from bytecodealliance. Update wasmtime to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
bytecodealliance wasmtime >= 0, < 1.0.2 Affected

Frequently Asked Questions

What is CVE-2022-39392?

CVE-2022-39392 is a medium-severity vulnerability affecting bytecodealliance wasmtime. It was published on November 10, 2022 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

How severe is CVE-2022-39392?

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-39392?

Check the references section for vendor advisories and patches from bytecodealliance. Update wasmtime to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-39392?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-39392 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.