Rust advisories / cranelift-codegen
Vulnerability HighRUSTSEC-2021-0067 · cranelift-codegen
RUSTSEC-2021-0067: Memory access due to code generation flaw in Cranelift module
Short answerA security vulnerability in the cranelift-codegen crate: Memory access due to code generation flaw in Cranelift module. High severity (CVSS 8.8). Fixed in 0.73.1: update to a fixed version.
| Crate | cranelift-codegen |
|---|---|
| Type | Vulnerability (code-execution, memory-corruption, memory-exposure) |
| Affected versions | Before 0.73.1. |
| Fixed in | 0.73.1 |
| Severity | High, CVSS 8.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2021-05-21 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2021-32629, GHSA-hpqh-2wqx-7qp5, PYSEC-2021-87 |
What to do
- See which version you have:
cargo tree -i cranelift-codegen(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p cranelift-codegen. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplecranelift-codegen = "0.73.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
There is a bug in 0.73.0 of the Cranelift x64 backend that can create a scenario that could result in a potential sandbox escape in a WebAssembly module. Users of versions 0.73.0 of Cranelift should upgrade to either 0.73.1 or 0.74 to remediate this vulnerability. Users of Cranelift prior to 0.73.0 should update to 0.73.1 or 0.74 if they were not using the old default backend.
More details can be found in the GitHub Security Advisory at:
<https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hpqh-2wqx-7qp5>
References
- Package: crates.io/crates/cranelift-codegen
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0067.html
- Web: github.com/bytecodealliance/wasmtime/commit/95559c01aaa7c061088a433040f31e8291fb09d0
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?