# CVE-2024-47763: Wasmtime runtime crash when combining tail calls with trapping imports

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-10-02T12:00:00.000Z
- Modified: 2026-10-12T18:00:12.401Z
- Also known as: GHSA-q8hx-mm92-4wvg, PYSEC-2024-312, RUSTSEC-2024-0440
- Weaknesses: CWE-617, CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 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; 21.0.0; 21.0.1; 22.0.0; 23.0.0; 23.0.1; 23.0.2; 24.0.0; and 2 more
- wasmtime (crates.io): from 12.0.0 before 21.0.2; from 22.0.0 before 22.0.1; from 23.0.0 before 23.0.3; from 24.0.0 before 24.0.1; from 25.0.0 before 25.0.2; from 21.0.0 before 21.0.2
- wasmtime-bin (PyPI): up to 21.0.0; up to 21.0.1; up to 22.0.0; up to 23.0.0; up to 23.0.1; up to 23.0.2; up to 24.0.0; up to 25.0.0; up to 25.0.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-q8hx-mm92-4wvg> (fix, mitigation, patch, third-party-advisory, web)
- <https://github.com/bytecodealliance/wasmtime/pull/8540> (fix, product, web)
- <https://github.com/bytecodealliance/wasmtime/pull/8682> (fix, product, web)
- <https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_tail_call> (product, web)
- <https://github.com/WebAssembly/proposals> (package, product, web)
- <https://github.com/webassembly/tail-call> (package, product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47763> (advisory)
- <https://github.com/bytecodealliance/wasmtime/pull/6774> (web)
- <https://github.com/bytecodealliance/wasmtime/commit/0ebe54d05f0e1f6c64b7c8bb48c9e9f6c95cacba> (web)
- <https://github.com/bytecodealliance/wasmtime> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/wasmtime-bin/PYSEC-2024-312.yaml> (web)
- <https://rustsec.org/advisories/RUSTSEC-2024-0440.html> (advisory, web)
- <https://crates.io/crates/wasmtime> (package)

## Sources

- CVE List: [CVE-2024-47763](https://www.cve.org/CVERecord?id=CVE-2024-47763), CVE Terms of Use, modified 2024-10-09
- GitHub Advisory Database: [GHSA-q8hx-mm92-4wvg](https://github.com/advisories/GHSA-q8hx-mm92-4wvg), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0440](https://rustsec.org/advisories/RUSTSEC-2024-0440.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2024-47763](https://nvd.nist.gov/vuln/detail/CVE-2024-47763), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-312](https://osv.dev/vulnerability/PYSEC-2024-312), CC-BY-4.0, modified 2026-05-21

---

Page: https://cve.day/CVE-2024-47763 · Whole record: https://cve.day/CVE-2024-47763.json · Rebuilt by cve.day 2026-11-25T22:58:46.420Z
