{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3591 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2022-3591 is a high-severity use after free vulnerability in Vim Vim, published on 2 Dec 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-2022-3591 and fix it if it is affected.\n\nWhat it is: CVE-2022-3591 is a high-severity use after free vulnerability in Vim Vim, published on 2 Dec 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3591 exists.\n\nAffected product: Vim Vim. 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-2022-3591/ (Markdown: https://insights.sbomify.com/CVE-2022-3591/index.md)","id":"CVE-2022-3591","markdown":"https://insights.sbomify.com/CVE-2022-3591/index.md","name":"CVE-2022-3591","record":{"aliases":["CLSA-2022-1671124332","CLSA-2022-1671124649","CLSA-2022-1671126265","DEBIAN-CVE-2022-3591","GHSA-c83f-4r5r-pqcw","UBUNTU-CVE-2022-3591"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Vim text editor","requires_auth":"none","summary":"A use-after-free flaw in Vim allows attackers to execute arbitrary code or cause a denial of service via crafted files.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"neovim","vendor":"neovim"},{"product":"vim","vendor":"vim"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"Use After Free in GitHub repository vim/vim prior to 9.0.0789.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Use After Free in vim/vim","id":"CVE-2022-3591","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"vim:vim","products":["vim:vim"],"type":"use_after_free","year":"2022"},"n_packages":0,"n_references":3,"next":{"headline":"Path traversal in samba","id":"CVE-2022-3592"},"packages":[],"prev":{"headline":"WP \u003c= 6.1.1 - Unauthenticated Blind SSRF via DNS Rebinding","id":"CVE-2022-3590"},"products":["vim/vim"],"published":"2022-12-02","related":[{"cvss_score":8.6,"headline":"Command injection in n/a","id":"CVE-2019-12735","kev_date_added":null,"published":"2019-06-05"},{"cvss_score":6.6,"headline":"Vim: Heap Buffer Overflow in spell file loading","id":"CVE-2026-45130","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":6.6,"headline":"Heap Overflow in Vim","id":"CVE-2026-25749","kev_date_added":null,"published":"2026-02-06"},{"cvss_score":4.5,"headline":"Vim heap-use-after-free in src/arglist.c:207","id":"CVE-2024-43374","kev_date_added":null,"published":"2024-08-15"},{"cvss_score":4.2,"headline":"heap-buffer-overflow with visual mode in Vim \u003c 9.1.1003","id":"CVE-2025-22134","kev_date_added":null,"published":"2025-01-13"},{"cvss_score":4.2,"headline":"Vim \u003c v9.1.0648 has a double-free in dialog_changed()","id":"CVE-2024-41965","kev_date_added":null,"published":"2024-08-01"}],"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["vim"]},"summary":"A use-after-free flaw in Vim allows attackers to execute arbitrary code or cause a denial of service via crafted files.","url":"https://insights.sbomify.com/CVE-2022-3591/"}