{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4022 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-4022 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-4022 is a medium-severity use after free vulnerability in rizin, published on 25 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-4022 and fix it if it is affected.\n\nWhat it is: CVE-2021-4022 is a medium-severity use after free vulnerability in rizin, published on 25 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-4022 in the wild and no public exploit code.\n\nAffected product: rizin. 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-4022/ (Markdown: https://insights.sbomify.com/CVE-2021-4022/index.md)","id":"CVE-2021-4022","markdown":"https://insights.sbomify.com/CVE-2021-4022/index.md","name":"CVE-2021-4022","record":{"aliases":["GHSA-5wm3-rhr5-rwmm"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rizin reverse engineering tool","requires_auth":"none","summary":"A crafted ELF64 binary causes Rizin to crash or potentially execute code by freeing uninitialized memory during analysis.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fedora","cpe":[{"product":"rizin","vendor":"rizin"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"A vulnerability was found in rizin. The bug involves an ELF64 binary for the HPPA architecture. When a specially crafted binarygets analysed by rizin, it causes rizin to crash by freeing an uninitialized (and potentially user controlled, depending on the build) memory address.","ecosystems":[],"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 rizin","id":"CVE-2021-4022","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Denial of service in kernel","id":"CVE-2021-4023"},"packages":[],"prev":{"headline":"Denial of service in radare2","id":"CVE-2021-4021"},"products":["rizin"],"published":"2022-08-25","related":[{"cvss_score":9.1,"headline":"rizin before v0.6.3 is vulnerable to Improper Neutralization of Special Elements via meta_set function in librz/analysis/meta.","id":"CVE-2024-31668","kev_date_added":null,"published":"2024-12-17"},{"cvss_score":7.8,"headline":"Rizin vulnerable to Integer Overflow in C++ demangler logic","id":"CVE-2023-40022","kev_date_added":null,"published":"2023-08-24"},{"cvss_score":7.8,"headline":"Memory corruption in rizin","id":"CVE-2021-3674","kev_date_added":null,"published":"2023-03-24"},{"cvss_score":7.8,"headline":"Rizin has stack-based buffer overflow when parsing GDB registers profile files","id":"CVE-2023-27590","kev_date_added":null,"published":"2023-03-14"},{"cvss_score":7.8,"headline":"Out-of-bounds write when parsing DEX files in Rizin","id":"CVE-2022-36039","kev_date_added":null,"published":"2022-09-06"},{"cvss_score":7.8,"headline":"Rizin Out-of-bounds Write vulnerability in pyc/marshal.c","id":"CVE-2022-36040","kev_date_added":null,"published":"2022-09-06"},{"cvss_score":7.8,"headline":"Rizin Out-of-bounds Write vulnerability in Mach-O binary plugin","id":"CVE-2022-36041","kev_date_added":null,"published":"2022-09-06"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A crafted ELF64 binary causes Rizin to crash or potentially execute code by freeing uninitialized memory during analysis.","url":"https://insights.sbomify.com/CVE-2021-4022/"}