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

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.62%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-29T23:55:10.000Z
- Modified: 2026-10-12T18:00:04.412Z
- Also known as: GHSA-hf79-8hjp-rrvq, RUSTSEC-2021-0155
- Weaknesses: CWE-416
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- bytecodealliance lucet: <= 0.6.1; up to 0.6.1
- lucet-runtime (crates.io): up to 0.6.1; from 0.0.0-0

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/bytecodealliance/lucet/security/advisories/GHSA-hf79-8hjp-rrvq> (exploit, third-party-advisory, web)
- <https://github.com/bytecodealliance/lucet/commit/7c7757c772fb709c61b1442bcc1e1fbee97bf4a8> (patch, third-party-advisory, web)
- <https://crates.io/crates/lucet-runtime> (package, product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43790> (advisory)
- <https://github.com/bytecodealliance/lucet> (package)
- <https://rustsec.org/advisories/RUSTSEC-2021-0155.html> (advisory, web)

## Sources

- CVE List: [CVE-2021-43790](https://www.cve.org/CVERecord?id=CVE-2021-43790), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hf79-8hjp-rrvq](https://github.com/advisories/GHSA-hf79-8hjp-rrvq), CC-BY-4.0, modified 2026-07-08
- RustSec Advisory Database: [RUSTSEC-2021-0155](https://rustsec.org/advisories/RUSTSEC-2021-0155.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2021-43790](https://nvd.nist.gov/vuln/detail/CVE-2021-43790), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43790 · Whole record: https://cve.day/CVE-2021-43790.json · Rebuilt by cve.day 2026-11-25T22:24:36.118Z
