Advisory

GHSA-g4v2-cjqp-rfmq

Also known as: CVE-2025-66627

Summary

Critical Use-After-Free in Wasmi's Linear Memory

Details

Summary

A use-after-free vulnerability has been discovered in the linear memory implementation of Wasmi. This issue can be triggered by a WebAssembly module under certain memory growth conditions, potentially leading to memory corruption, information disclosure, or code execution.

Impact

  • Confidentiality: High – attacker-controlled memory reads possible.
  • Integrity: High – memory corruption may allow arbitrary writes.
  • Availability: High – interpreter crashes possible.

Affected Versions

Wasmi v0.41.0 through Wasmi v1.0.0.

Workarounds

  • Upgrade to the latest patched version of Wasmi.
  • Consider limiting the maximum linear memory sizes where feasible.

Credits

This vulnerability was discovered by Robert T. Morris (RTM).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-12-08 22:15 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

wasmi

crates.io · All systems

Affected

  • introduced 0.41.0, fixed 0.41.2 (semver)

Fixed versions

0.41.2

Fix

  • Fixed version 0.41.2
    cargo update -p wasmi --precise 0.41.2

wasmi

crates.io · All systems

Affected

  • introduced 0.42.0, fixed 0.47.1 (semver)

Fixed versions

0.47.1

Fix

  • Fixed version 0.47.1
    cargo update -p wasmi --precise 0.47.1

wasmi

crates.io · All systems

Affected

  • introduced 0.50.0, fixed 0.51.3 (semver)

Fixed versions

0.51.3

Fix

  • Fixed version 0.51.3
    cargo update -p wasmi --precise 0.51.3

wasmi

crates.io · All systems

Affected

  • introduced 1.0.0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

  • Fixed version 1.0.1
    cargo update -p wasmi --precise 1.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences