{"id":"GHSA-g4v2-cjqp-rfmq","revision":"b7fd26cc7a77408397cc129f29642308","records":[{"revision":"b7fd26cc7a77408397cc129f29642308","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-g4v2-cjqp-rfmq","aliases":["CVE-2025-66627"],"title":"Critical Use-After-Free in Wasmi's Linear Memory","description":"### 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)**.","state":0,"publishedAt":"2025-12-08T22:15:49+00:00","modifiedAt":"2026-09-10T03:50:31.9529507+00:00","affected":[{"ecosystem":"crates.io","name":"wasmi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.41.0"},{"kind":"fixed","version":"0.41.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"wasmi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.42.0"},{"kind":"fixed","version":"0.47.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"wasmi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.50.0"},{"kind":"fixed","version":"0.51.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"wasmi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-g4v2-cjqp-rfmq","https://nvd.nist.gov/vuln/detail/CVE-2025-66627","https://github.com/wasmi-labs/wasmi/commit/0e6f0d2a8325602c58d6a53ce1c0e6045eb6a490","https://github.com/wasmi-labs/wasmi"],"sourceUrl":"https://github.com/advisories/GHSA-g4v2-cjqp-rfmq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g4v2-cjqp-rfmq","identifiers":["GHSA-g4v2-cjqp-rfmq","CVE-2025-66627"]},"retained":false,"historicalAffected":[]}],"coverage":[]}