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-24791

8.1 · HIGH
Published Mar 31, 2022 bytecodealliance CWE-416 EPSS 1.18% (65th pctl)

Overview

CVE-2022-24791 is a high-severity vulnerability affecting bytecodealliance wasmtime. It was published on March 31, 2022 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting some stack maps because it expected to emit the stack maps in block definition order, rather than block emission order. When Wasmtime would eventually collect garbage, it would fail to find live referen

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.34.0, < 0.34.2 Affected

Frequently Asked Questions

What is CVE-2022-24791?

CVE-2022-24791 is a high-severity vulnerability affecting bytecodealliance wasmtime. It was published on March 31, 2022 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2022-24791?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

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

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-24791?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-24791 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.