{"answers":{"affected":"3 open source packages ship an affected version, including lucet-runtime. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-43790 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-43790 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-43790 is a high-severity use after free vulnerability in bytecodealliance lucet, published on 29 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-43790 and fix it if it is affected.\n\nWhat it is: CVE-2021-43790 is a high-severity use after free vulnerability in bytecodealliance lucet, published on 29 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-43790 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- lucet-runtime (crates.io): affected all versions up to 0.6.1; no fix listed\n- lucet-runtime (crates.io): affected all versions up to 0.6.1; no fix listed\n- lucet-runtime (crates.io): affected from 0.0.0-0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-43790/ (Markdown: https://insights.sbomify.com/CVE-2021-43790/index.md)","id":"CVE-2021-43790","markdown":"https://insights.sbomify.com/CVE-2021-43790/index.md","name":"CVE-2021-43790","record":{"aliases":["GHSA-hf79-8hjp-rrvq","RUSTSEC-2021-0155"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"WebAssembly runtime library","requires_auth":"low_privilege","summary":"A use-after-free bug in the Lucet WebAssembly runtime allows attackers to trigger memory corruption or crashes when an Instance object is dropped.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"lucet","vendor":"bytecodealliance"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Use After Free in lucet","id":"CVE-2021-43790","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2021"},"n_packages":3,"n_references":3,"next":{"headline":"Ineffective expiration validation for invitation links in Zulip","id":"CVE-2021-43791"},"packages":[{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.6.1"],"package":"lucet-runtime","purl":null,"source":"GHSA-hf79-8hjp-rrvq"},{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.6.1"],"package":"lucet-runtime","purl":"pkg:cargo/lucet-runtime","source":"GHSA-hf79-8hjp-rrvq"},{"ecosystem":"crates.io","fixed":[],"introduced":["0.0.0-0"],"last_affected":[],"package":"lucet-runtime","purl":"pkg:cargo/lucet-runtime","source":"RUSTSEC-2021-0155"}],"prev":{"headline":"Blind SQLi using Search filters in PrestaShop","id":"CVE-2021-43789"},"products":["lucet"],"published":"2021-11-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["bytecodealliance"]},"summary":"A use-after-free bug in the Lucet WebAssembly runtime allows attackers to trigger memory corruption or crashes when an Instance object is dropped.","url":"https://insights.sbomify.com/CVE-2021-43790/"}