Advisory

RUSTSEC-2021-0067

Also known as: CVE-2021-32629, GHSA-hpqh-2wqx-7qp5, PYSEC-2021-87

Summary

Memory access due to code generation flaw in Cranelift module

Details

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

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2021-05-21 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

cranelift-codegen

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.73.1 (semver)

Fixed versions

0.73.1

Fix

  • Fixed version 0.73.1
    cargo update -p cranelift-codegen --precise 0.73.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences