# CVE-2021-43790: Use After Free in lucet

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-11-29 · Modified: 2024-08-04
- Aliases: GHSA-hf79-8hjp-rrvq, RUSTSEC-2021-0155
- Record: https://cvemate.com/vulnerability/CVE-2021-43790 · JSON: https://cvemate.com/vulnerability/CVE-2021-43790/json

## Description

```text
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.
```

## Signals

- CVSS: 8.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.617%, percentile 76.875%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- bytecodealliance lucet: ≤ 0.6.1
- Crates.Io lucet-runtime (Crates.Io): ≤ 0.6.1 \| ≥ 0.0.0-0 (No fix recorded)

## References

- <https://github.com/bytecodealliance/lucet/security/advisories/GHSA-hf79-8hjp-rrvq>
- <https://github.com/bytecodealliance/lucet/commit/7c7757c772fb709c61b1442bcc1e1fbee97bf4a8>
- <https://crates.io/crates/lucet-runtime>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43790>
- <https://github.com/bytecodealliance/lucet>
- <https://rustsec.org/advisories/RUSTSEC-2021-0155.html>

---

Data as of 2026-12-05T10:24:59.680Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
