{"id":"CVE-2025-66627","aliases":["CVE-2025-66627","GHSA-g4v2-cjqp-rfmq"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA 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.\n\n### Impact\n\n- **Confidentiality:** High – attacker-controlled memory reads possible.\n- **Integrity:** High – memory corruption may allow arbitrary writes.\n- **Availability:** High – interpreter crashes possible.\n\n### Affected Versions\n\nWasmi `v0.41.0` through Wasmi `v1.0.0`.\n\n### Workarounds\n\n- Upgrade to the latest patched version of Wasmi.\n- Consider limiting the maximum linear memory sizes where feasible.\n\n### Credits\n\nThis vulnerability was discovered by **Robert T. Morris (RTM)**.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-08T22:15:49.000Z","modified":"2026-10-14T21:10:00.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":">= 0.41.0, < 0.41.2","status":"affected"},{"version":">= 0.42.0, < 0.47.1","status":"affected"},{"version":">= 0.50.0, < 0.51.3","status":"affected"},{"version":">= 1.0.0, < 1.0.1","status":"affected"}],"vendor":"wasmi-labs","product":"wasmi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.41.0","status":"affected","fixed":"0.41.2"}],"ecosystem":"crates.io","package":"wasmi","purl":"pkg:cargo/wasmi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.42.0","status":"affected","fixed":"0.47.1"}],"ecosystem":"crates.io","package":"wasmi","purl":"pkg:cargo/wasmi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.50.0","status":"affected","fixed":"0.51.3"}],"ecosystem":"crates.io","package":"wasmi","purl":"pkg:cargo/wasmi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.0.1"}],"ecosystem":"crates.io","package":"wasmi","purl":"pkg:cargo/wasmi","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.41.0","fixed":"0.41.2"},{"status":"affected","introduced":"0.47.0","fixed":"0.47.1"},{"status":"affected","introduced":"0.51.0","fixed":"0.51.3"},{"status":"affected","version":"1.0.0"}],"vendor":"wasmi-labs","product":"wasmi","cpe":"cpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-g4v2-cjqp-rfmq","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66627","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/wasmi-labs/wasmi/commit/0e6f0d2a8325602c58d6a53ce1c0e6045eb6a490","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/wasmi-labs/wasmi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-09T15:21:08.509Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66627","url":"https://www.cve.org/CVERecord?id=CVE-2025-66627","licence":"CVE Terms of Use","modified":"2025-12-09T15:21:18.048Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g4v2-cjqp-rfmq","url":"https://github.com/advisories/GHSA-g4v2-cjqp-rfmq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:31.952Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66627","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66627","licence":"Public domain","modified":"2026-10-14T21:10:00.183Z"}],"updatedAt":"2026-11-25T22:59:08.542Z","epss":{"score":0.00157,"percentile":0.05081,"date":"2026-12-01T12:00:22.000Z"}}