{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-21772 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-21772 is a high-severity use after free vulnerability in Debian Debian Linux, published on 10 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21772 and fix it if it is affected.\n\nWhat it is: CVE-2021-21772 is a high-severity use after free vulnerability in Debian Debian Linux, published on 10 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21772 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-21772/ (Markdown: https://insights.sbomify.com/CVE-2021-21772/index.md)","id":"CVE-2021-21772","markdown":"https://insights.sbomify.com/CVE-2021-21772/index.md","name":"CVE-2021-21772","record":{"aliases":["DEBIAN-CVE-2021-21772","DSA-4887-1","GHSA-6f4r-f2fv-g8f4","MGASA-2021-0368","UBUNTU-CVE-2021-21772","USN-6216-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"3MF library","requires_auth":"none","summary":"A use-after-free in lib3mf allows attackers to execute arbitrary code via a specially crafted 3MF file.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"talos","cpe":[{"product":"lib3mf","vendor":"3mf"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"A use-after-free vulnerability exists in the NMR::COpcPackageReader::releaseZIP() functionality of 3MF Consortium lib3mf 2.0.0. A specially crafted 3MF file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-12-31","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-31T03:48:46Z","kind":"github_poc","ref":"https://github.com/3dluvr/New-lib3mf.dll-for-MeshMixer","stars":1,"title":"Precompiled lib3mf.dll for MeshMixer which includes a backported patch for CVE-2021-21772 and zlib 1.3.1"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Use after free in 3MF","id":"CVE-2021-21772","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"use_after_free","year":"2021"},"n_packages":0,"n_references":7,"next":{"headline":"Memory corruption in Accusoft","id":"CVE-2021-21773"},"packages":[],"prev":{"headline":"Open redirect in ZXIN10 CMS","id":"CVE-2021-21751"},"products":["3MF"],"published":"2021-03-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A use-after-free in lib3mf allows attackers to execute arbitrary code via a specially crafted 3MF file.","url":"https://insights.sbomify.com/CVE-2021-21772/"}