CVE-2021-39219
CVE-2021-39219 — Wrong type for `Linker`-define functions when used across two `Engine`s
Wasmtime is an open source runtime for WebAssembly & WASI. Wasmtime before version 0.30.0 is affected by a type confusion vulnerability. As a Rust library the `wasmtime` crate clearly marks which functions are safe and which are `unsafe`, guaranteeing that if consumers never use `unsafe` then it should not be possible to have memory unsafety issues in their embeddings of Wasmtime. An issue was discovered in the safe API of `Linker::func_*` APIs. These APIs were previously not sound when one `Engine` was used to create the `Linker` and then a different `Engine` was used to create a `Store` and then the `Linker` was used to instantiate a module into that `Store`. Cross-`Engine` usage of functions is not supported in Wasmtime and this can result in type confusion of function pointers, resulting in being able to safely call a function with the wrong type. Triggering this bug requires using…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.3
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.3 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-843
References
5 on the record
- crates.io/crates/wasmtime
x_refsource_MISC
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-q879-9g95-56mx
x_refsource_CONFIRM
- github.com/bytecodealliance/wasmtime/commit/b39f087414f27ae40c44449ed5d1154e03449bff
x_refsource_MISC
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z2Z33FTXFQ6EOINVEQIP4DFBG53G5XIY/
vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAVBRYDDUIY2ZR3K3FO4BVYJKIMJ5TP7/
vendor-advisory, x_refsource_FEDORA
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2012-0507 Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-10585 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-7971 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2024-5274 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2024-4947 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2026-85046 Google Chromium V8 Type Confusion VulnerabilityCVSS 8.8 · CISA KEV
Elsewhere on this site
- Bytecodeallianceevery CVE for this vendor
- CWE-843other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.