{"id":"CVE-2022-39393","published":"2022-11-10T00:00:00Z","modified":"2025-05-02T12:51:28Z","title":"Wasmtime vulnerable to data leakage between instances in the pooling allocator","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"Wasmtime is a standalone runtime for WebAssembly. Prior to versions 2.0.2 and 1.0.2, there is a bug in Wasmtime's implementation of its pooling instance allocator where when a linear memory is reused for another instance the initial heap snapshot of the prior instance can be visible, erroneously to the next instance. This bug has been patched and users should upgrade to Wasmtime 2.0.2 and 1.0.2. Other mitigations include disabling the pooling allocator and disabling the `memory-init-cow`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00939,"percentile":0.61658,"provenance":"source"},"cwes":[{"id":"CWE-226","name":"Sensitive Information in Resource Not Removed Before Reuse"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-wh6w-3828-g9qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":12.33},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":[">= 2.0.0, < 2.0.2","< 1.0.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:49:01.866453Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":[">=2.0.0, <2.0.2","<1.0.2",">=0.0.0-0, <1.0.2"],"patched":["2.0.2","1.0.2"],"from":["GHSA-wh6w-3828-g9qf","RUSTSEC-2022-0075","RUSTSEC-2022-0098"],"provenance":"source"}],"summary":{"text":"Wasmtime, the standalone WebAssembly runtime from the Bytecode Alliance, contains a flaw in its pooling instance allocator where a reused linear memory can expose the initial heap snapshot of a previous instance to the next instance that receives it. An attacker who can run or interact with a WebAssembly instance on a network-reachable Wasmtime deployment that uses the pooling allocator can obtain data left by earlier instances, without needing authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:28Z"},"euvd":{"id":"EUVD-2022-7455","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bytecodealliance-wasmtime-cve-2022-39392","parents":[{"from":"CVE-2022-39392","to":"CVE-2022-39393","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/runtime/src/instance/allocator/pooling.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/e60c3742904ccbb3e26da201c9221c38a4981d72","https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6"],"basis":"shared function","functions":["InstancePool","MemoryPool"]}]}],"children":[{"from":"CVE-2022-39393","to":"CVE-2026-104855","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasmtime/src/config.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6","https://github.com/bytecodealliance/wasmtime/commit/3ebfbe5af4927c157d6fcaca42b8dbb6d17b73fb","https://github.com/bytecodealliance/wasmtime/commit/99b0bc39d447317a4102c056081c83a9a84a46e0"],"basis":"shared function","functions":["Config"]}]},{"from":"CVE-2022-39393","to":"CVE-2026-27195","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/cli-flags/src/lib.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6","https://github.com/bytecodealliance/wasmtime/commit/9e51c0d9a240a9613d279c061f82286bd11383fd","https://github.com/bytecodealliance/wasmtime/commit/d86b00736b9ece60b3c81e52f7a7e4cdd9f7d895"],"basis":"rarely changed file"}]},{"from":"CVE-2022-39393","to":"CVE-2026-27572","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/cli-flags/src/lib.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6","https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"],"basis":"rarely changed file"}]}]}}