{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-12735 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2019-12735 is a high-severity command injection vulnerability in Vim Vim, published on 5 Jun 2019. 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-2019-12735 and fix it if it is affected.\n\nWhat it is: CVE-2019-12735 is a high-severity command injection vulnerability in Vim Vim, published on 5 Jun 2019. 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-2019-12735 in the wild and no public exploit code.\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-2019-12735/ (Markdown: https://insights.sbomify.com/CVE-2019-12735/index.md)","id":"CVE-2019-12735","markdown":"https://insights.sbomify.com/CVE-2019-12735/index.md","name":"CVE-2019-12735","record":{"aliases":["ALPINE-CVE-2019-12735","DEBIAN-CVE-2019-12735","DSA-4467-1","DSA-4487-1","GHSA-5x93-92vm-jw5m","MGASA-2020-0082","RHSA-2019:1619","RHSA-2019:1774","RHSA-2019:1793","RHSA-2019:1947","SUSE-SU-2019:14078-1","SUSE-SU-2019:1456-1","SUSE-SU-2019:1457-1","UBUNTU-CVE-2019-12735","USN-4862-1","openSUSE-SU-2019:1551-1","openSUSE-SU-2019:1561-1","openSUSE-SU-2019:1759-1","openSUSE-SU-2019:1796-1","openSUSE-SU-2019:1997-1"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Vim text editor","requires_auth":"none","summary":"Remote attackers can execute arbitrary OS commands in Vim or Neovim via malicious modelines in source files.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"neovim","vendor":"neovim"},{"product":"vim","vendor":"vim"}],"cvss":{"score":8.6,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via the :source! command in a modeline, as demonstrated by execute in Vim, and assert_fails or nvim_input in Neovim.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:rhel_eus:7.4::computenode","Red Hat:rhel_eus:7.4::server","Red Hat:rhel_eus:7.5::computenode","Red Hat:rhel_eus:7.5::server","SUSE:Enterprise Storage 4","SUSE:Linux Enterprise Desktop 12 SP3","SUSE:Linux Enterprise Desktop 12 SP4","SUSE:Linux Enterprise Module for Basesystem 15","SUSE:Linux Enterprise Module for Basesystem 15 SP1","SUSE:Linux Enterprise Module for Desktop Applications 15","SUSE:Linux Enterprise Module for Desktop Applications 15 SP1","SUSE:Linux Enterprise Point of Sale 11 SP3","SUSE:Linux Enterprise Server 11 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP1-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP2-LTSS","SUSE:Linux Enterprise Server 12 SP3","SUSE:Linux Enterprise Server 12 SP4","SUSE:Linux Enterprise Server 12-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:OpenStack Cloud 7","SUSE:Package Hub 15","SUSE:Package Hub 15 SP1","openSUSE:Leap 15.0","openSUSE:Leap 15.1"],"exploits":{"exploitdb":1,"first_seen":"2019-06-04","github_poc":5,"max_poc_stars":9,"metasploit":0,"nuclei":0,"refs":[{"date":"2019-06-06T06:00:06Z","kind":"github_poc","ref":"https://github.com/pcy190/ace-vim-neovim","stars":9,"title":"Vim/Neovim Arbitrary Code Execution via Modelines (CVE-2019-12735)"},{"date":"2019-06-18T16:59:39Z","kind":"github_poc","ref":"https://github.com/oldthree3/CVE-2019-12735-VIM-NEOVIM","stars":2,"title":null},{"date":"2021-05-20T07:18:49Z","kind":"github_poc","ref":"https://github.com/nickylimjj/cve-2019-12735","stars":1,"title":"Docker image that lets me study the exploitation of the VIM exploit"},{"date":"2019-06-04","kind":"exploitdb","ref":"46973","stars":null,"title":"Vim \u003c 8.1.1365 / Neovim \u003c 0.3.6 - Arbitrary Code Execution"},{"date":"2020-10-26T04:07:20Z","kind":"github_poc","ref":"https://github.com/datntsec/CVE-2019-12735","stars":0,"title":null},{"date":"2022-07-26T08:45:21Z","kind":"github_poc","ref":"https://github.com/st9007a/CVE-2019-12735","stars":0,"title":"A demo for cve-2019-12735"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2019-12735","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"vim:vim","products":["vim:vim"],"type":"command_injection","year":"2019"},"n_packages":131,"n_references":29,"next":{"headline":"Command injection in n/a","id":"CVE-2019-12736"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-filesystem","purl":"pkg:rpm/redhat/vim-filesystem","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-filesystem","purl":"pkg:rpm/redhat/vim-filesystem","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-filesystem","purl":"pkg:rpm/redhat/vim-filesystem","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-filesystem","purl":"pkg:rpm/redhat/vim-filesystem","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["2:7.4.629-5.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2019:1774"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-filesystem","purl":"pkg:rpm/redhat/vim-filesystem","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2019:1619"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["2:7.4.160-6.el7_6"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2019:1619"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2019-12734"},"products":["n/a"],"published":"2019-06-05","related":[{"cvss_score":7.8,"headline":"Use After Free in vim/vim","id":"CVE-2022-3591","kev_date_added":null,"published":"2022-12-02"},{"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-11","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary OS commands in Vim or Neovim via malicious modelines in source files.","url":"https://insights.sbomify.com/CVE-2019-12735/"}