{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-39394","published":"2022-11-10T20:15:11.850000Z","last_modified":"2026-06-17T04:58:16.460000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*","part":"a","vendor":"bytecodealliance","product":"wasmtime","version_end_excluding":"1.0.2"},{"criteria":"cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*","part":"a","vendor":"bytecodealliance","product":"wasmtime","version_start_including":"2.0.0","version_end_excluding":"2.0.2"}],"cpes_truncated":false,"vendors":["bytecodealliance"],"products":["bytecodealliance/wasmtime"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00472,"percentile":0.3302,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-h84q-m8rr-3v9q","ecosystem":"crates.io","name":"wasmtime","purl":"pkg:cargo/wasmtime","ranges":[{"introduced":"2.0.0","fixed":"2.0.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-h84q-m8rr-3v9q","ecosystem":"crates.io","name":"wasmtime","purl":"pkg:cargo/wasmtime","ranges":[{"introduced":"0","fixed":"1.0.2"}],"versions":[],"versions_truncated":false},{"advisory":"RUSTSEC-2022-0097","ecosystem":"crates.io","name":"wasmtime","purl":"pkg:cargo/wasmtime","ranges":[{"introduced":"0.0.0-0","fixed":"1.0.2"},{"introduced":"2.0.0","fixed":"2.0.2"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-39394/","html_en":"/en/cve/CVE-2022-39394/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39394","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39394"},"untrusted":{"vendor_name":"Bytecodealliance","product_name":"Wasmtime","desc_en":"Wasmtime is a standalone runtime for WebAssembly. Prior to version 2.0.2, there is a bug in Wasmtime's C API implementation where the definition of the `wasmtime_trap_code` does not match its declared signature in the `wasmtime/trap.h` header file. This discrepancy causes the function implementation to perform a 4-byte write into a 1-byte buffer provided by the caller. This can lead to three zero bytes being written beyond the 1-byte location provided by the caller. This bug has been patched and users should upgrade to Wasmtime 2.0.2. This bug can be worked around by providing a 4-byte buffer casted to a 1-byte buffer when calling `wasmtime_trap_code`. Users of the `wasmtime` crate are not affected by this issue, only users of the C API function `wasmtime_trap_code` are affected.","affected":[{"untrusted_vendor":"bytecodealliance","untrusted_product":"wasmtime","versions":[]}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/commit/087d9d7becf7422b3f872a3bcd5d97bb7ce7ff36","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q","tags":["Third Party Advisory"]}]}}