3.3low
Wasmtime vulnerable to panic when using a dropped extenref-typed element segment
- Severity
- 3.3low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-75hq-h6g9-h4q5PYSEC-2024-327RUSTSEC-2024-0441
Description
wasmtime is a runtime for WebAssembly. The 19.0.0 release of Wasmtime contains a regression introduced during its development which can lead to a guest WebAssembly module causing a panic in the host runtime. A valid WebAssembly module, when executed at runtime, may cause this panic. This vulnerability has been patched in version 19.0.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bytecodealliance wasmtime | = 19.0.0, 19.0.0 | CVE List, NVD |
| wasmtime (crates.io) | from 19.0.0 before 19.0.1 | GitHub Advisory Database, RustSec Advisory Database |
| wasmtime (PyPI) | up to 19.0.0 | PyPA Advisory Database |
All scores
| GitHub_M | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| RustSec Advisory Database | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
wasmtime is a runtime for WebAssembly. The 19.0.0 release of Wasmtime contains a regression introduced during its development which can lead to a guest WebAssembly module causing a panic in the host runtime. A valid WebAssembly module, when executed at runtime, may cause this panic. This vulnerability has been patched in version 19.0.1.
GitHub Advisory Database
Impact
The 19.0.0 release of Wasmtime contains a regression introduced during its development which can lead to a guest WebAssembly module causing a panic in the host runtime. A valid WebAssembly module, when executed at runtime, may cause this panic. The panic in question is caused when a WebAssembly module issues a table.* instruction which uses a dropped element segment with a table that also has an externref type. This causes Wasmtime to erroneously use an empty function segment instead of an empty externref segment to perform this operation. This mismatch in types causes a panic in Wasmtime when it's asserted that an externref table is only viewed as externrefs.
This regression was introduced during the development of the 19.0.0 release and only affects the 19.0.0 release. This panic requires the reference-types WebAssembly feature to be enabled, and it is enabled by default. Toolchains are not known to generate this pattern by default so it's likely a module would need to be specifically crafted to trigger this panic.
A panic in a host runtime represents a possible denial-of-service in some scenarios. This panic cannot introduce memory unsafety or allow WebAssembly to break outside of its sandbox, however. There is no possible heap corruption or memory unsafety from this panic.
Patches
Wasmtime 19.0.1 has been released to fix this problem. Users of 19.0.0 should upgrade to 19.0.1. All other versions of Wasmtime are not affected by this issue.
Workarounds
If upgrading is not possible it's recommended to use config.reference_types(false). That will disable these modules at validation-time which prevents the possibility of a panic at runtime. If reference-types are required, however, then there is no other workaround at this time other than upgrading.
References
RustSec Advisory Database
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-75hq-h6g9-h4q5. For more information see the GitHub-hosted security advisory.
NVD (es)
wasmtime es un tiempo de ejecución para WebAssembly. La versión 19.0.0 de Wasmtime contiene una regresión introducida durante su desarrollo que puede provocar que un módulo WebAssembly invitado cause pánico en el tiempo de ejecución del host. Un módulo WebAssembly válido, cuando se ejecuta en tiempo de ejecución, puede provocar este pánico. Esta vulnerabilidad ha sido parcheada en la versión 19.0.1.
References
| https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-75hq-h6g9-h4q5 | advisory, mitigation, third-party-advisory, web | |
| https://github.com/bytecodealliance/wasmtime/issues/8281 | exploit, issue-tracking, report, web | |
| https://github.com/bytecodealliance/wasmtime/pull/8018 | fix, patch, web | |
| https://github.com/bytecodealliance/wasmtime/pull/8283 | fix, patch, web | |
| https://github.com/bytecodealliance/wasmtime/commit/7f57d0bb0948fa56cc950278d0db230ed10e8664 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-30266 | advisory | |
| https://github.com/bytecodealliance/wasmtime | package | |
| https://rustsec.org/advisories/RUSTSEC-2024-0441.html | advisory, web | |
| https://crates.io/crates/wasmtime | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-30266 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-75hq-h6g9-h4q5 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0441 changed 2026-10-12 | CC0-1.0 |
| NVD | CVE-2024-30266 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-327 changed 2026-07-13 | CC-BY-4.0 |