CVE-2021-43790
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.
Weakness
- CWE-416: Use After Free
Timeline
- 2021-11-29Published by the CNA23:55 UTC
- 2021-11-30GitHub advisory published (GHSA-hf79-8hjp-rrvq)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-hf79-8hjp-rrvq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| crates.io lucet-runtime | through 0.6.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| bytecodealliance lucet | through 0.6.1no fix listed | not listed |
References
- https://github.com/bytecodealliance/lucet/commit/7c7757c772fb709c61b1442bcc1e1fbee97bf4a8
- https://github.com/bytecodealliance/lucet/security/advisories/GHSA-hf79-8hjp-rrvq
- https://crates.io/crates/lucet-runtime
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-43790'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-43790'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-43790'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-43790'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).