CVE-2021-39219
Python vulnerability analysis and mitigation

Overview

Wasmtime, an open source runtime for WebAssembly & WASI, was affected by a type confusion vulnerability in versions before 0.30.0 (CVE-2021-39219). The vulnerability was discovered and disclosed in September 2021, impacting the safe API of Linker::func_* APIs (GitHub Advisory).

Technical details

The vulnerability occurred when one Engine was used to create the Linker and then a different Engine was used to create a Store, followed by using the Linker to instantiate a module into that Store. This cross-Engine usage of functions, which is not supported in Wasmtime, could result in type confusion of function pointers, allowing functions to be safely called with the wrong type (GitHub Advisory). The vulnerability was rated as Moderate with a CVSS v3.1 score of 6.3 (NVD).

Impact

The vulnerability could lead to type confusion issues when using multiple Engine instances, potentially resulting in memory safety violations. However, the impact was considered relatively small since using more than one Engine in an embedding is relatively rare, as an Engine is intended to be a globally shared resource (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in Wasmtime version 0.30.0. For users unable to upgrade, it is recommended to use only one Engine for the entire program if possible, as an Engine is designed to be a globally shared resource. If multiple Engines are required, code should be audited to ensure that Linker is only used with one Engine (GitHub Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management