CVE-2021-43790Bytecodealliance Lucet
High 8.1 No auth needed
Follow: this CVE · Bytecodealliance · Bytecodealliance Lucet We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Nov 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Lucet is a native WebAssembly compiler and runtime. There is a bug in the main branch of `lucet-runtime` affecting all versions published to crates.io that allows a use-after-free in an Instance object that could result in memory corruption, data race, or other related issues. This bug was introduced early in the development of Lucet and is present in all releases. As a result of this bug, and dependent on the memory backing for the Instance objects, it is possible to trigger a use-after-free when the Instance is dropped. Users should upgrade to the main branch of the Lucet repository. Lucet no longer provides versioned releases on crates.io. There is no way to remediate this vulnerability without upgrading.
What to do
- Apply the vendor's security update for Lucet.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | lucet-runtime |
≤ 0.6.1 |
no fixed version | — |
| crates.io | lucet-runtime |
≥ 0.0.0-0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-hf79-8hjp-rrvq, RUSTSEC-2021-0155). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| bytecodealliance | lucet | ≤ 0.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- crates.io Product Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory