CVE-2026-34943
JSON

5.6medium

Wasmtime panics when lifting `flags` component value

Severity
5.6medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m758-wjhj-p3jqRUSTSEC-2026-0085

Description

Wasmtime is a runtime for WebAssembly. Prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, Wasmtime contains a possible panic which can happen when a flags-typed component model value is lifted with the Val type. If bits are set outside of the set of flags the component model specifies that these bits should be ignored but Wasmtime will panic when this value is lifted. This panic only affects wasmtime's implementation of lifting into Val, not when using the flags! macro. This additionally only affects flags-typed values which are part of a WIT interface. This has the risk of being a guest-controlled panic within the host which Wasmtime considers a DoS vector. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.

Affected

Product or packageVersionsReported by
bytecodealliance wasmtime< 24.0.7, >= 25.0.0, < 36.0.7, >= 37.0.0, < 42.0.2, >= 43.0.0, < 44.0.1, before 24.0.7, from 25.0.0 before 36.0.7, from 37.0.0 before 42.0.2, from 43.0.0 before 43.0.1CVE List, NVD
wasmtime (crates.io)before 24.0.7, from 25.0.0 before 36.0.7, from 37.0.0 before 42.0.2, from 43.0.0 before 43.0.1, from 0.0.0-0 before 24.0.7GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub_M5.6medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHub7.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
RustSec Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-248

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Wasmtime is a runtime for WebAssembly. Prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, Wasmtime contains a possible panic which can happen when a flags-typed component model value is lifted with the Val type. If bits are set outside of the set of flags the component model specifies that these bits should be ignored but Wasmtime will panic when this value is lifted. This panic only affects wasmtime's implementation of lifting into Val, not when using the flags! macro. This additionally only affects flags-typed values which are part of a WIT interface. This has the risk of being a guest-controlled panic within the host which Wasmtime considers a DoS vector. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.

GitHub Advisory Database
Impact

Wasmtime contains a possible panic which can happen when a flags-typed component model value is lifted with the Val type. If bits are set outside of the set of flags the component model specifies that these bits should be ignored but Wasmtime will panic when this value is lifted. This panic only affects wasmtime's implementation of lifting into Val, not when using the flags! macro. This additionally only affects flags-typed values which are part of a WIT interface.

This has the risk of being a guest-controlled panic within the host which Wasmtime considers a DoS vector.

Patches

Wasmtime 24.0.7, 36.0.7, 42.0.2, and 43.0.1 have been issued to fix this bug. Users are recommended to update to these patched versions of Wasmtime.

Workarounds

There is no workaround for this bug if a host meets the criteria to be affected. To be affected a host must be using wasmtime::component::Val and possibly work with a flags type in the component model.

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-m758-wjhj-p3jq For more information see the GitHub-hosted security advisory.

NVD (es)

Wasmtime es un runtime para WebAssembly. Antes de 24.0.7, 36.0.7, 42.0.2 y 43.0.1, Wasmtime contiene un posible pánico que puede ocurrir cuando un valor de modelo de componente de tipo ’flags’ es elevado con el tipo Val. Si los bits se establecen fuera del conjunto de ’flags’, el modelo de componente especifica que estos bits deben ser ignorados, pero Wasmtime entrará en pánico cuando este valor sea elevado. Este pánico solo afecta la implementación de Wasmtime de la elevación a Val, no cuando se usa la macro ’flags!’. Esto adicionalmente solo afecta a los valores de tipo ’flags’ que forman parte de una interfaz WIT. Esto tiene el riesgo de ser un pánico controlado por el invitado dentro del anfitrión que Wasmtime considera un vector de DoS. Esta vulnerabilidad está corregida en 24.0.7, 36.0.7, 42.0.2 y 43.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34943 changed 2026-04-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-m758-wjhj-p3jq changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0085 changed 2026-10-12CC0-1.0
NVDCVE-2026-34943 changed 2026-10-26Public domain