CVE-2026-140417: Panic in `Caller::get_module_export` when a host function isn't called from WebAssembly

Published Nov 16, 2026
·
Updated

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hj27-mpw9-ff4c For more information see the GitHub-hosted security advisory.

Other sources

Wasmtime before 36.0.21, 37.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 panics in Caller::getmoduleexport when a host function is invoked by the embedder rather than from WebAssembly, because Caller then refers to a placeholder instance with no module. A malicious core WebAssembly module can import a host function that uses this API and re-export it to the embedder, crashing the host when the embedder calls it.

— MITRE

Affected Software

5 affected componentsFixes available
Bytecode Alliance Wasmtime<36.0.21, >=37.0.0<48.0.9, >=49.0.0<49.0.6, >=50.0.0<50.0.2
rust/wasmtime>=0.0.0-0<36.0.21
36.0.21
rust/wasmtime>=37.0.0<48.0.9
48.0.9
rust/wasmtime>=49.0.0<49.0.6
49.0.6
rust/wasmtime>=50.0.0<50.0.2
50.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 36.0.21
  2. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 48.0.9
  3. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 49.0.6
  4. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 50.0.2

Event History

Nov 16, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software
Dec 1, 2026
CVE Published
via MITRE·02:28 PM
Data Sourced
via MITRE·02:28 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·02:28 PM
SeverityWeakness
Data Sourced
via NVD·03:18 PM
DescriptionSeverityWeakness
Event
via NVD·03:18 PM

Frequently Asked Questions

1

Which deployments are exposed to this denial of service?

Deployments are exposed if they use an affected Wasmtime version, run potentially malicious core WebAssembly modules, and provide a host function that calls Caller::get_module_export. The issue is triggered only when that host function is imported and re-exported by the module, then invoked by the embedder rather than from WebAssembly.

2

What must an attacker be able to do to trigger the crash?

An attacker needs to supply a core WebAssembly module that imports a relevant host function and re-exports it. The embedder must then call the re-exported host function; this causes Wasmtime to panic because Caller refers to a placeholder instance without a module.

3

Which versions contain the fix?

The fixed versions are 36.0.21, 48.0.9, 49.0.6, and 50.0.2. Affected ranges are versions before 36.0.21, 37.0.0 through before 48.0.9, 49.0.0 through before 49.0.6, and 50.0.0 through before 50.0.2.

4

What can be done if upgrading is not immediately possible?

Avoid calling host functions through module re-exports when those functions use Caller::get_module_export. In particular, do not invoke such functions from the embedder after a WebAssembly module imports and re-exports them.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203