CVE-2025-66627
JSON

8.4high

Wasmi's Linear Memory has a Critical Use After Free Vulnerability

Severity
8.4high CVSS:3.1 by GitHub_M
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-g4v2-cjqp-rfmq

Description

Wasmi is a WebAssembly interpreter focused on constrained and embedded systems. In versions 0.41.0, 0.41.1, 0.42.0 through 0.47.1, 0.50.0 through 0.51.2 and 1.0.0, Wasmi's linear memory implementation leads to a Use After Free vulnerability, triggered by a WebAssembly module under certain memory growth conditions. This issue potentially leads to memory corruption, information disclosure, or code execution. This issue is fixed in versions 0.41.2, 0.47.1, 0.51.3 and 1.0.1. To workaround this issue, consider limiting the maximum linear memory sizes where feasible.

Affected

Product or packageVersionsReported by
wasmi-labs wasmi>= 0.41.0, < 0.41.2, >= 0.42.0, < 0.47.1, >= 0.50.0, < 0.51.3, >= 1.0.0, < 1.0.1, from 0.41.0 before 0.41.2, from 0.47.0 before 0.47.1, from 0.51.0 before 0.51.3, 1.0.0CVE List, NVD
wasmi (crates.io)from 0.41.0 before 0.41.2, from 0.42.0 before 0.47.1, from 0.50.0 before 0.51.3, from 1.0.0 before 1.0.1GitHub Advisory Database

All scores

GitHub_M8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Wasmi is a WebAssembly interpreter focused on constrained and embedded systems. In versions 0.41.0, 0.41.1, 0.42.0 through 0.47.1, 0.50.0 through 0.51.2 and 1.0.0, Wasmi's linear memory implementation leads to a Use After Free vulnerability, triggered by a WebAssembly module under certain memory growth conditions. This issue potentially leads to memory corruption, information disclosure, or code execution. This issue is fixed in versions 0.41.2, 0.47.1, 0.51.3 and 1.0.1. To workaround this issue, consider limiting the maximum linear memory sizes where feasible.

GitHub Advisory Database
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).

NVD (es)

Wasmi es un intérprete de WebAssembly enfocado en sistemas restringidos y embebidos. En las versiones 0.41.0, 0.41.1, 0.42.0 hasta la 0.47.1, 0.50.0 hasta la 0.51.2 y 1.0.0, la implementación de memoria lineal de Wasmi conduce a una vulnerabilidad de Use After Free, activada por un módulo WebAssembly bajo ciertas condiciones de crecimiento de memoria. Este problema puede conducir potencialmente a corrupción de memoria, revelación de información o ejecución de código. Este problema está solucionado en las versiones 0.41.2, 0.47.1, 0.51.3 y 1.0.1. Como solución alternativa a este problema, considere limitar los tamaños máximos de memoria lineal donde sea factible.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66627 changed 2025-12-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-g4v2-cjqp-rfmq changed 2026-09-10CC-BY-4.0
NVDCVE-2025-66627 changed 2026-10-14Public domain