CVE-2022-24791 — Use after free in wasmtime — CVE Details
Use after free in Wasmtime
Summary
Advisory Timeline
- First published April 1, 2022 (1655 days ago).
- Last revised May 2, 2025 — 1127 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p wasmtime --precise 0.34.2
cargo update -p wasmtime --precise 0.35.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-416Use After FreeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gwc9-348x-qwv2WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24791ADVISORY
- https://github.com/bytecodealliance/wasmtime/commit/666c2554ea0e1728c35aa41178cf235920db888aWEB
- https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.epoch_interruptionWEB
- https://github.com/WebAssembly/reference-typesWEB
- https://github.com/bytecodealliance/wasmtimePACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0016.htmlWEB
- https://rustsec.org/advisories/RUSTSEC-2022-0099.htmlWEB
Frequently Asked Questions
- What is CVE-2022-24791?
- Use after free in Wasmtime This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2022-24791?
- CVE-2022-24791 affects wasmtime. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-24791 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2023-26489CRITICAL
wasmtime vulnerable to guest-controlled out-of-bounds read/write on x86_64
- CVE-2026-34971CRITICAL
Wasmtime: Miscompiled guest heap access enables sandbox escape on aarch64 Cranelift
- CVE-2026-34941MEDIUM
Wasmtime: Heap OOB read in component model UTF-16 to latin1+utf16 string transcoding
- CVE-2026-34942MEDIUM
Wasmtime: Panic when transcoding misaligned utf-16 strings
- CVE-2026-34943MEDIUM
Wasmtime has a possible panic when lifting `flags` component value
- CVE-2026-34946MEDIUM
Wasmtime has host panic when Winch compiler executes `table.fill`
- CVE-2024-47763MEDIUM
wasmtime has a runtime crash when combining tail calls with trapping imports
- CVE-2026-34945LOW
Wasmtime has host data leakage with 64-bit tables and Winch
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies