# CVE-2021-32629: RUSTSEC-2021-0067 - Memory access due to code generation flaw in Cranelift module

Source: https://junglewise.ai/threats/cve-2021-32629-memory-access-due-to-code-generation-flaw-in-cranelift-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-05-21  
License: CC BY 4.0 with a link back

CVE-2021-32629 · Severity: low · CVSS 3.1 · Published 2021-05-21

Memory access due to code generation flaw in Cranelift module

Technologies: [cranelift-codegen (crates.io)](https://junglewise.ai/threats/technologies/cranelift-codegen), [wasmtime (PyPI)](https://junglewise.ai/threats/technologies/pypi-wasmtime). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-32629 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-32629 being exploited in the wild.

**How severe is CVE-2021-32629?** Low severity, with a CVSS score of 3.1, published 21 May 2021.

**Which products and versions are affected?** cranelift-codegen (crates.io) SEMVER:introduced=0,fixed=0.73.1, SEMVER:introduced=0.0.0-0,fixed=0.73.1; wasmtime (PyPI) GIT:introduced=0,fixed=95559c01aaa7c061088a433040f31e8291fb09d0|ECOSYSTEM:introduced=0,fixed=0.27.0.

**Is there a fix for CVE-2021-32629?** Yes. cranelift-codegen (crates.io): upgrade to 0.73.1 or later; wasmtime (PyPI): upgrade to 0.27.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-32629?** Check whether you run cranelift-codegen (crates.io) or wasmtime (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cranelift-codegen (crates.io): upgrade to 0.73.1 or later

  ```sh
  cargo update -p cranelift-codegen
  ```

- wasmtime (PyPI): upgrade to 0.27.0 or later

  ```sh
  pip install "wasmtime>=0.27.0"
  ```


## Affected products

- cranelift-codegen (crates.io) SEMVER:introduced=0,fixed=0.73.1, SEMVER:introduced=0.0.0-0,fixed=0.73.1
- wasmtime (PyPI) GIT:introduced=0,fixed=95559c01aaa7c061088a433040f31e8291fb09d0|ECOSYSTEM:introduced=0,fixed=0.27.0

## Identifiers

- CVE-2021-32629
- GHSA-hpqh-2wqx-7qp5
- PYSEC-2021-87
- RUSTSEC-2021-0067

## Related threats

- [Bytecode Alliance Wasmtime use-after-free in Linker cloning](https://junglewise.ai/threats/cve-2026-34983-bytecode-alliance-wasmtime-use-after-free-in-linker-cloning)
- [Bytecode Alliance Wasmtime race condition in internal type registry](https://junglewise.ai/threats/cve-2024-47813-bytecode-alliance-wasmtime-race-condition-in-internal-type)
- [RUSTSEC-2024-0441 - Panic when using a dropped extenref-typed element segment](https://junglewise.ai/threats/cve-2024-30266-pysec-2024-327-wasmtime-is-a-runtime-for-webassembly-the-19-0-0)
- [RUSTSEC-2023-0093 - Miscompilation of `i8x16.select` with the same inputs on x86\_64](https://junglewise.ai/threats/cve-2023-27477-wasmtime-vulnerable-to-miscompilation-of-i8x16-select-with-the)
- [RUSTSEC-2023-0090 - Guest-controlled out-of-bounds read/write on x86\_64](https://junglewise.ai/threats/cve-2023-26489-wasmtime-vulnerable-to-guest-controlled-out-of-bounds-read-write)
