Vulnerability DatabaseRUSTSEC-2022-0076

RUSTSEC-2022-0076
Rust vulnerability analysis and mitigation

Overview

A vulnerability (RUSTSEC-2022-0076/CVE-2022-39392) was discovered in Wasmtime's implementation of its pooling instance allocator, affecting versions ≤ 2.0.1. The issue occurs when the allocator is configured to give WebAssembly instances a maximum of zero pages of memory. This configuration causes the virtual memory mapping for WebAssembly memories to fail meeting the compiler-required configuration requirements for safely executing WebAssembly modules (GitHub Advisory).

Technical details

The vulnerability stems from a misconfiguration in Wasmtime's pooling allocator when InstanceLimits::memory_pages is set to zero. Under normal circumstances, Wasmtime relies on virtual memory page faults to indicate out-of-bounds wasm reads/writes. However, with this specific configuration, the pooling allocator creates an improper virtual memory mapping that fails to enforce these boundaries. The vulnerability has been assigned a CVSS score of 5.9 (Moderate), with attack vector being Network, high attack complexity, high privileges required, and no user interaction needed (GitHub Advisory).

Impact

When exploited, this vulnerability allows out-of-bounds reads and writes to successfully access memory unrelated to the wasm sandbox within range of the base address of the memory mapping created by the pooling allocator. However, the impact is considered moderate due to the rare nature of the triggering configuration, as most WebAssembly modules require linear memory for operation (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Wasmtime version 2.0.2. Alternative workarounds include disabling the pooling allocator (which is not enabled by default) or increasing the memory_pages allotment to a value greater than zero. For cases where prevention of memory usage is still desired, the Store::limiter method can be used to dynamically disallow growth of memory beyond 0 bytes (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
RUSTSEC-2026-0229HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management