Email me

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.

Cratecranelift-codegen
TypeVulnerability (code-execution, memory-corruption, memory-exposure)
Affected versionsBefore 0.73.1.
Fixed in0.73.1
SeverityHigh, CVSS 8.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published2021-05-21
Last changed2026-10-12
Also known asCVE-2021-32629, GHSA-hpqh-2wqx-7qp5, PYSEC-2021-87

What to do

  1. See which version you have: cargo tree -i cranelift-codegen (it also shows which of your dependencies pulls it in).
  2. 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 example cranelift-codegen = "0.73.1") or update the dependency that pulls it in.
  3. 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

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 →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ