CVE-2021-43790: bytecodealliance lucet Use After Free
Vulnerability summary
CVE-2021-43790 is a high (CVSS 8.5) Use After Free vulnerability in bytecodealliance lucet. EPSS estimates a 1.62% chance of exploitation in the next 30 days, higher than 75.6% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 29-11-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · Crates.ioEcosystem advisory · calculated8.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.62%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
+0.05 pp
From 1.57% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLucet
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Bytecodealliance1 product
- lucet≤ 0.6.1
Crates.Io1 product
- lucet-runtime≤ 0.6.1 | ≥ 0.0.0-0 (No fix recorded)
2 vendors · 2 products
References
6 links- github.com/bytecodealliance/lucet/security/advisories/GHSA-hf79-8hjp-rrvqX Refsource CONFIRMWEBExploitThird Party Advisory
- github.com/bytecodealliance/lucet/commit/7c7757c772fb709c61b1442bcc1e1fbee97bf4a8X Refsource MISCWEBPatchThird Party Advisory