CVE-2024-47763
Wasmtime runtime crash when combining tail calls with trapping imports
Also known as GHSA-q8hx-mm92-4wvg, PYSEC-2024-312, RUSTSEC-2024-0440
Mitigation
- Upgrade wasmtime to one of 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 (or later in the same release line).
Who should check
- Projects that depend on PyPI package wasmtime-bin (<= 21.0.0; <= 21.0.1; <= 22.0.0; <= 23.0.0; <= 23.0.1; <= 23.0.2; <= 24.0.0; <= 25.0.0; <= 25.0.1)
- Projects that depend on crates.io package wasmtime (>= 12.0.0, < 21.0.2)
- Anyone running bytecodealliance wasmtime >= 21.0.0, < 21.0.2; >= 22.0.0, < 22.0.1; >= 23.0.0, < 23.0.3; >= 24.0.0, < 24.0.1; >= 25.0.0, < 25.0.2
Vulnerability facts
- Affected
- wasmtime-bin <= 21.0.0; <= 21.0.1; <= 22.0.0; <= 23.0.0; <= 23.0.1; <= 23.0.2; <= 24.0.0; <= 25.0.0; <= 25.0.1; wasmtime >= 12.0.0, < 21.0.2
- Fixed in
- 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-670
- Modified
Description
Wasmtime is an open source runtime for WebAssembly. Wasmtime's implementation of WebAssembly tail calls combined with stack traces can result in a runtime crash in certain WebAssembly modules. The runtime crash may be undefined behavior if Wasmtime was compiled with Rust 1.80 or prior. The runtime crash is a deterministic process abort when Wasmtime is compiled with Rust 1.81 and later. WebAssembly tail calls are a proposal which relatively recently reached stage 4 in the standardization process. Wasmtime first enabled support for tail calls by default in Wasmtime 21.0.0, although that release contained a bug where it was only on-by-default for some configurations. In Wasmtime 22.0.0 tail calls were enabled by default for all configurations. The specific crash happens when an exported function in a WebAssembly module (or component) performs a `return_call` (or `return_call_indirect` or `return_call_ref`) to an imported host function which captures a stack trace (for example, the host function raises a trap). In this situation, the stack-walking code previously assumed there was always at least one WebAssembly frame on the stack but with tail calls that is no longer true. With the tail-call proposal it's possible to have an entry trampoline appear as if it directly called the exit trampoline. This situation triggers an internal assert in the stack-walking code which raises a Rust `panic!()`. When Wasmtime is compiled with Rust versions 1.80 and prior this means that an `extern "C"` function in Rust is raising a `panic!()`. This is technically undefined behavior and typically manifests as a process abort when the unwinder fails to unwind Cranelift-generated frames. When Wasmtime is compiled with Rust versions 1.81 and later this panic becomes a deterministic process abort. Overall the impact of this issue is that this is a denial-of-service vector where a malicious WebAssembly module or component can cause the host to crash. There is no other impact at this time other than availability of a service as the result of the crash is always a crash and no more. This issue was discovered by routine fuzzing performed by the Wasmtime project via Google's OSS-Fuzz infrastructure. We have no evidence that it has ever been exploited by an attacker in the wild. All versions of Wasmtime which have tail calls enabled by default have been patched: * 21.0.x - patched in 21.0.2 * 22.0.x - patched in 22.0.1 * 23.0.x - patched in 23.0.3 * 24.0.x - patched in 24.0.1 * 25.0.x - patched in 25.0.2. Wasmtime versions from 12.0.x (the first release with experimental tail call support) to 20.0.x (the last release with tail-calls off-by-default) have support for tail calls but the support is disabled by default. These versions are not affected in their default configurations, but users who explicitly enabled tail call support will need to either disable tail call support or upgrade to a patched version of Wasmtime. The main workaround for this issue is to disable tail support for tail calls in Wasmtime, for example with `Config::wasm_tail_call(false)`. Users are otherwise encouraged to upgrade to patched versions.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI wasmtime-bin | <= 21.0.0; <= 21.0.1; <= 22.0.0; <= 23.0.0; <= 23.0.1; <= 23.0.2; <= 24.0.0; <= 25.0.0; <= 25.0.1 | — | osv |
| crates.io wasmtime | >= 12.0.0, < 21.0.2 | 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 | osv |
| bytecodealliance wasmtime | >= 21.0.0, < 21.0.2; >= 22.0.0, < 22.0.1; >= 23.0.0, < 23.0.3; >= 24.0.0, < 24.0.1; >= 25.0.0, < 25.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-47763. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-47763.md Affected: wasmtime-bin <= 21.0.0; <= 21.0.1; <= 22.0.0; <= 23.0.0; <= 23.0.1; <= 23.0.2; <= 24.0.0; <= 25.0.0; <= 25.0.1; wasmtime >= 12.0.0, < 21.0.2 Fixed in: 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 Steps: 1. Search this machine and project for wasmtime-bin (PyPI), wasmtime (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_tail_call
- https://github.com/WebAssembly/proposals
- https://github.com/webassembly/tail-call
- https://github.com/bytecodealliance/wasmtime
- https://github.com/pypa/advisory-database/tree/main/vulns/wasmtime-bin/PYSEC-2024-312.yaml
- https://crates.io/crates/wasmtime
FAQ
Is CVE-2024-47763 being exploited?
There is no confirmed exploitation: CVE-2024-47763 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-47763?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-47763?
wasmtime-bin <= 21.0.0; <= 21.0.1; <= 22.0.0; <= 23.0.0; <= 23.0.1; <= 23.0.2; <= 24.0.0; <= 25.0.0; <= 25.0.1; wasmtime >= 12.0.0, < 21.0.2.
Is there a fix for CVE-2024-47763?
Yes. Fixed in 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2. Upgrade wasmtime to one of 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 (or later in the same release line).
How do I check if I'm affected by CVE-2024-47763?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.