CVEBrief

Home / bytecodealliance / wasmtime / CVE-2021-32629

CVE-2021-32629: is it exploited, and which versions of bytecodealliance wasmtime are affected and fixed?

CVE-2021-32629 is an access of Memory Location After End of Buffer vulnerability in bytecodealliance wasmtime. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: cranelift-codegen before 0.73.1 and wasmtime before 0.27.0 (GitHub advisory GHSA-hpqh-2wqx-7qp5). Fixed in 0.73.1 and 0.27.0 (GitHub advisory GHSA-hpqh-2wqx-7qp5). Severity: High (7.2, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:57 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 15:09 UTC
Affected
cranelift-codegen before 0.73.1 and wasmtime before 0.27.0
GitHub advisory GHSA-hpqh-2wqx-7qp5
Fixed in
0.73.1 and 0.27.0
GitHub advisory GHSA-hpqh-2wqx-7qp5
Severity
High 7.2
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.46% in 30 days
higher than 41% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-32629?

Memory access due to code generation flaw in Cranelift module

Cranelift is an open-source code generator maintained by Bytecode Alliance. It translates a target-independent intermediate representation into executable machine code. There is a bug in 0.73 of the Cranelift x64 backend that can create a scenario that could result in a potential sandbox escape in a Wasm program. This bug was introduced in the new backend on 2020-09-08 and first included in a release on 2020-09-30, but the new backend was not the default prior to 0.73. The recently-released version 0.73 with default settings, and prior versions with an explicit build flag to select the new backend, are vulnerable. The bug in question performs a sign-extend instead of a zero-extend on a value loaded from the stack, under a specific set of circumstances. If those circumstances occur, the bug could allow access to memory addresses upto 2GiB before the start of the Wasm program heap. If the heap bound is larger than 2GiB, then it would be possible to read memory from a computable range dependent on the size of the heaps bound. The impact of this bug is highly dependent on heap implementation, specifically: * if the heap has bounds checks, and * does not rely exclusively on guard pages, and * the heap bound is 2GiB or smaller * then this bug cannot be used to reach memory from another Wasm program heap. The impact of the vulnerability is mitigated if there is no memory mapped in the range accessible using this bug, for example, if there is a 2 GiB guard region before the Wasm program heap. The bug in question performs a sign-extend instead of a zero-extend on a value loaded from the stack, when the register allocator reloads a spilled integer value narrower than 64 bits. This interacts poorly with another optimization: the instruction selector elides a 32-to-64-bit zero-extend operator when we know that an instruction producing a 32-bit value actually zeros the upper 32 bits of its destination register. Hence, we rely on these zeroed bits, but the type of the value is still i32, and the spill/reload reconstitutes those bits as the sign extension of the i32’s MSB. The issue would thus occur when: * An i32 value in a Wasm program is greater than or equal to 0x8000_0000; * The value is spilled and reloaded by the register allocator due to high register pressure in the program between the value’s definition and its use; * The value is produced by an instruction that we know to be “special” in that it zeroes the upper 32 bits of its destination: add, sub, mul, and, or; * The value is then zero-extended to 64 bits in the Wasm program; * The resulting 64-bit value is used. Under these circumstances there is a potential sandbox escape when the i32 value is a pointer. The usual code emitted for heap accesses zero-extends the Wasm heap address, adds it to a 64-bit heap base, and accesses the resulting address. If the zero-extend becomes a sign-extend, the program could reach backward and access memory up to 2GiB before the start of its heap. In addition to assessing the nature of the code generation bug in Cranelift, we have also determined that under specific circumstances, both Lucet and Wasmtime using this version of Cranelift may be exploitable. See referenced GitHub Advisory for more details.

From the CVE record by GitHub_M, last updated August 3, 2024, 23:25 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
bytecodealliancewasmtime<= 0.73.0

As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
crates.iocranelift-codegen< 0.73.10.73.1GHSA-hpqh-2wqx-7qp5
PyPIwasmtime< 0.27.00.27.0GHSA-hpqh-2wqx-7qp5

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 19, 2024. Summary: Memory access due to code generation flaw in Cranelift module.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
bytecodealliancecranelift-codegenbefore 0.73.1application

NVD analysis (status Modified), last modified June 17, 2026, 03:53 UTC.

How severe is CVE-2021-32629?

ScoreVersionVectorSource
High 7.2CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NGitHub_M
High 8.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HNVD
Medium 4.6CVSS 2.0AV:L/AC:L/Au:N/C:P/I:P/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-32629 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.46% probability of exploitation activity in the next 30 days, percentile 41.2 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
May 12, 2021
Published
May 24, 2021, 15:35 UTC
CVE record updated
August 3, 2024, 23:25 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 03:53 UTC
Last checked
CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect wasmtime?

Every CVE in wasmtime

Questions about CVE-2021-32629

Is CVE-2021-32629 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.46% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of bytecodealliance wasmtime are affected by CVE-2021-32629?

cranelift-codegen before 0.73.1 and wasmtime before 0.27.0, per the GitHub advisory GHSA-hpqh-2wqx-7qp5. The tables above give every range the sources list.

Which version fixes CVE-2021-32629?

0.73.1 and 0.27.0, per the GitHub advisory GHSA-hpqh-2wqx-7qp5. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-32629?

High (7.2, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2021-32629?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.