{"id":"CVE-2026-34943","aliases":["CVE-2026-34943","GHSA-m758-wjhj-p3jq","RUSTSEC-2026-0085"],"related":[],"kind":"vulnerability","state":"published","title":"Wasmtime panics when lifting `flags` component value","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWasmtime 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. \n\nThis has the risk of being a guest-controlled panic within the host which Wasmtime considers a DoS vector.\n\n### Patches\n\nWasmtime 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.\n\n### Workarounds\n\nThere 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"This is an entry in the RustSec database for the Wasmtime security advisory\nlocated at\nhttps://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m758-wjhj-p3jq\nFor more information see the GitHub-hosted security advisory.","format":"markdown","source":"rustsec"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-09T12:00:00.000Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 24.0.7","status":"affected"},{"version":">= 25.0.0, < 36.0.7","status":"affected"},{"version":">= 37.0.0, < 42.0.2","status":"affected"},{"version":">= 43.0.0, < 44.0.1","status":"affected"}],"vendor":"bytecodealliance","product":"wasmtime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"24.0.7"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"25.0.0","status":"affected","fixed":"36.0.7"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"37.0.0","status":"affected","fixed":"42.0.2"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"43.0.0","status":"affected","fixed":"43.0.1"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"24.0.7"},{"type":"semver","introduced":"25.0.0","status":"affected","fixed":"36.0.7"},{"type":"semver","introduced":"37.0.0","status":"affected","fixed":"42.0.2"},{"type":"semver","introduced":"43.0.0","status":"affected","fixed":"43.0.1"}],"ecosystem":"crates.io","package":"wasmtime","purl":"pkg:cargo/wasmtime","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"24.0.7"},{"status":"affected","introduced":"25.0.0","fixed":"36.0.7"},{"status":"affected","introduced":"37.0.0","fixed":"42.0.2"},{"status":"affected","introduced":"43.0.0","fixed":"43.0.1"}],"vendor":"bytecodealliance","product":"wasmtime","cpe":"cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m758-wjhj-p3jq","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34943","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bytecodealliance/wasmtime","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0085.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/wasmtime","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/13015","tags":["web"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-13T20:15:13.926Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34943","url":"https://www.cve.org/CVERecord?id=CVE-2026-34943","licence":"CVE Terms of Use","modified":"2026-04-13T20:15:23.994Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m758-wjhj-p3jq","url":"https://github.com/advisories/GHSA-m758-wjhj-p3jq","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:02.309Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0085","url":"https://rustsec.org/advisories/RUSTSEC-2026-0085.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:09.239Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34943","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34943","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.403Z","epss":{"score":0.00344,"percentile":0.2991,"date":"2026-12-01T12:00:22.000Z"}}