# CVE-2025-66627: Wasmi's Linear Memory has a Critical Use After Free Vulnerability

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-12-08T22:15:49.000Z
- Modified: 2026-10-14T21:10:00.183Z
- Also known as: GHSA-g4v2-cjqp-rfmq
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- 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.0
- 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.1

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-g4v2-cjqp-rfmq> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66627> (advisory)
- <https://github.com/wasmi-labs/wasmi/commit/0e6f0d2a8325602c58d6a53ce1c0e6045eb6a490> (web)
- <https://github.com/wasmi-labs/wasmi> (package)

## Sources

- CVE List: [CVE-2025-66627](https://www.cve.org/CVERecord?id=CVE-2025-66627), CVE Terms of Use, modified 2025-12-09
- GitHub Advisory Database: [GHSA-g4v2-cjqp-rfmq](https://github.com/advisories/GHSA-g4v2-cjqp-rfmq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66627](https://nvd.nist.gov/vuln/detail/CVE-2025-66627), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-66627 · Whole record: https://cve.day/CVE-2025-66627.json · Rebuilt by cve.day 2026-11-25T22:59:08.542Z
