Loading...
Skip to main content

CVE-2025-66627 — Critical Use-After-Free in wasmi — CVE Details

HIGH

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

Published December 8, 2025Updated September 10, 2026Source: osv

Summary

### 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)**.

Advisory Timeline

  • First published December 8, 2025 (308 days ago).
  • Last revised September 10, 2026 — 275 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update wasmi to 0.51.3 or later
cargo update -p wasmi --precise 0.51.3
Cargo
Update wasmi to 1.0.1 or later
cargo update -p wasmi --precise 1.0.1
Cargo
Update wasmi to 0.41.2 or later
cargo update -p wasmi --precise 0.41.2
Cargo
Update wasmi to 0.47.1 or later
cargo update -p wasmi --precise 0.47.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: crates.io (1).

PackageEcosystemAffectedFixed In
wasmi
crates.io
All versions0.51.3
wasmi
crates.io
All versions1.0.1
wasmi
crates.io
All versions0.41.2
wasmi
crates.io
All versions0.47.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-66627?
Critical Use-After-Free in Wasmi's Linear Memory This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
How do I check if my project is affected by CVE-2025-66627?
CVE-2025-66627 affects wasmi. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-66627 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-g4v2-cjqp-rfmq

Related CVEs

  • CVE-2026-93657
    HIGH

    hickory-resolver: Resolver::lookup() and Resolver::lookup_ip() APIs obscure DNSSEC validation failures

  • CVE-2024-28123
    HIGH

    Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters

  • CVE-2026-18140
    HIGH

    aws-smithy-json: Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies