CVE-2021-43790
HIGH 8.1CVSS 3.1Use After Free in lucet
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.
- Published
- 30 Nov 2021
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-hf79-8hjp-rrvqRUSTSEC-2021-0155
- Sources
- NVDJSONOSV GHSA-hf79-8hjp-rrvqJSONOSV RUSTSEC-2021-0155JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bytecodealliance | lucetcpe:2.3:a:bytecodealliance:lucet:*:*:*:*:*:rust:*:* |
<= 0.6.1 | |
| OSV | crates.io | lucet-runtime | <= 0.6.1 | |
| OSV | crates.io | lucet-runtime | >= 0.0.0-0 |
References
- https://crates.io/crates/lucet-runtime · Product, Third Party Advisory, WEB, PACKAGE
- https://github.com/bytecodealliance/lucet/commit/7c7757c772fb709c61b1442bcc1e1fbee97bf4a8 · Patch, Third Party Advisory, WEB
- https://github.com/bytecodealliance/lucet/security/advisories/GHSA-hf79-8hjp-rrvq · Exploit, 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 · WEB, ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Nov 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Nov 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Nov 2021)