CVE-2025-66627
HIGH 7.8CVSS 3.1Critical Use-After-Free in Wasmi's Linear Memory
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.
- Published
- 9 Dec 2025
- Last modified
- 14 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-416
- Also known as
- GHSA-g4v2-cjqp-rfmq
- Sources
- NVDJSONOSV GHSA-g4v2-cjqp-rfmqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | wasmi-labs | wasmicpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:* |
>= 0.41.0, < 0.41.2 | 0.41.2 |
| NVD | wasmi-labs | wasmicpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:* |
>= 0.47.0, < 0.47.1 | 0.47.1 |
| NVD | wasmi-labs | wasmicpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:* |
>= 0.51.0, < 0.51.3 | 0.51.3 |
| NVD | wasmi-labs | wasmicpe:2.3:a:wasmi-labs:wasmi:1.0.0:*:*:*:*:rust:*:* |
= 1.0.0 | |
| OSV | crates.io | wasmi | >= 0.41.0, < 0.41.2 | 0.41.2 |
| OSV | crates.io | wasmi | >= 0.42.0, < 0.47.1 | 0.47.1 |
| OSV | crates.io | wasmi | >= 0.50.0, < 0.51.3 | 0.51.3 |
| OSV | crates.io | wasmi | >= 1.0.0, < 1.0.1 | 1.0.1 |
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
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 9 Dec 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Dec 2025)