Wasmi's Linear Memory has a Critical Use After Free Vulnerability
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-66627
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 12:01 UTC · Revision 1
Source evidence
Wasmi's Linear Memory has a Critical Use After Free Vulnerability
core-osv · Original sourcePublished 9 Dec 2025, 02:52 UTC
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.
osv:CVE-2025-66627
Complete source record
{
"id": "0c72b65d4e6fb07d827811eb845503948c2675cbddcd2f3be486e2481d1be7ae",
"url": "https://osv.dev/vulnerability/CVE-2025-66627",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Wasmi's Linear Memory has a Critical Use After Free Vulnerability",
"summary": "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.",
"evidence": "osv:CVE-2025-66627",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-66627",
"aliases": [
"CVE-2025-66627",
"GHSA-g4v2-cjqp-rfmq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wasmi-labs/wasmi",
"type": "GIT",
"events": [
{
"introduced": "7188f7f085af2c862d3807183dd4061e5dd79419"
},
{
"fixed": "4a350204a8b8d07d3ab3e21e19f2fdfbe25e5e9a"
},
{
"introduced": "572b76c9c3b5afe67d3a527e0f40c9c24e392f21"
},
{
"fixed": "a2a4616b28d7dda839997563e3a2f55cd35b551f"
},
{
"introduced": "c3292187cf9760e74f3c934068b31b6be0360808"
},
{
"fixed": "e4a8ffd854bf7cb48ff9d646870ea223af89fca3"
},
{
"introduced": "2337ea2292b0762f780ebf0fe72831e6b5f8b93a"
},
{
"last_affected": "2337ea2292b0762f780ebf0fe72831e6b5f8b93a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0.41.0"
},
{
"fixed": "0.41.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0.47.0"
},
{
"fixed": "0.47.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0.51.0"
},
{
"fixed": "0.51.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:wasmi-labs:wasmi:1.0.0:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "1.0.0"
},
{
"last_affected": "1.0.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.0.0",
"v0.41.1",
"v0.47.0",
"v1.0.0",
"v0.51.2",
"v0.51.1",
"v0.51.0",
"v0.41.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66627.json"
}
}
],
"modified": "2026-10-28T02:30:35.310953365Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66627.json",
"https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-g4v2-cjqp-rfmq",
"https://nvd.nist.gov/vuln/detail/CVE-2025-66627"
],
"provider_metadata": {
"cwe_ids": [
"CWE-416"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66627.json"
}
},
"related_cves": [
{
"value": "CVE-2025-66627",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 502275,
"published_at": "2025-12-09T02:52:46.938+00:00"
}