CVE-2019-12735: Vim & Neovim - Command Injection
- Cve: CVE-2019-12735
- Name: Vim & Neovim - Command Injection
- 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.
- Impact: Remote attackers can execute arbitrary OS commands on the affected system, potentially leading to full system compromise.
- Remediation: Update Vim to version 8.1.1365 or later and Neovim to version 0.3.6 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.18964
- Epss percentile: 0.9737
- Assignee: [email protected]
- Published at: 2019-06-05T14:29:11Z
- Age in days: 2729
- Modified at: 2026-06-17T02:15:20Z
- Patch available: yes
- Public exploits total: 6
- References total: 32
- Products total: 2
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-12735
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/numirias/security/blob/master/doc/2019-06-04_ace-vim-neovim.md | nvd | 2019-06-05 |
| https://github.com/st9007a/CVE-2019-12735 | poc-in-github | 2022-07-26 |
| https://github.com/nickylimjj/cve-2019-12735 | poc-in-github | 2021-05-20 |
| https://github.com/datntsec/CVE-2019-12735 | poc-in-github | 2020-10-26 |
| https://github.com/oldthree3/CVE-2019-12735-VIM-NEOVIM | poc-in-github | 2019-06-18 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/neovim/neovim/pull/10082 | Patch, Third Party Advisory |
| https://github.com/numirias/security/blob/master/doc/2019-06-04_ace-vim-neovim.md | Exploit, Patch, Third Party Advisory |
| https://github.com/vim/vim/commit/53575521406739cf20bbe4e384d88e7dca11f040 | Patch, Third Party Advisory |
| https://bugs.debian.org/930020 | Mailing List, Third Party Advisory |
| https://bugs.debian.org/930024 | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00031.html | |
| http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00036.html | |
| http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00037.html | |
| http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00034.html | |
| http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00050.html |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vim:vim | < 8.1.1365 | no | nvd | /v1/products/vim/vim |
| neovim:neovim | < 0.3.6 | no | nvd | /v1/products/neovim/neovim |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| neovim/neovim | pull | yes | /v1/repositories/neovim/neovim |
| vim/vim | commit | yes | /v1/repositories/vim/vim |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 6
- Public exploit first date: 2019-06-05
- Exposed hosts: 365
- Checked, none or zero: known exploited, known exploited by, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports