RCE in Neovim
CVE-2019-12735
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.190, 97.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
5 public repositories with exploit or proof-of-concept code for this CVE:
- pcy190/ace-vim-neovim (9 stars, last pushed 2019-06-06): Vim/Neovim Arbitrary Code Execution via Modelines (CVE-2019-12735)
- oldthree3/CVE-2019-12735-VIM-NEOVIM (2 stars, last pushed 2019-06-19)
- nickylimjj/cve-2019-12735 (1 star, last pushed 2021-05-28): Docker image that lets me study the exploitation of the VIM exploit
- st9007a/CVE-2019-12735 (last pushed 2022-07-26): A demo for cve-2019-12735
- datntsec/CVE-2019-12735 (last pushed 2020-10-27)
Also mentioned in 14 other repositories (0xT11/CVE-POC, ARPSyndicate/cvemon, dai5z/LBAS, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/numirias/security/blob/master/doc/2019-06-04_ace-vim-neovim.md (Exploit, Patch, Third Party Advisory)
- github.com/vim/vim/commit/53575521406739cf20bbe4e384d88e7dca11f040 (Patch, Third Party Advisory)
- github.com/neovim/neovim/pull/10082 (Patch, Third Party Advisory)
- bugs.debian.org/930020 (Mailing List, Third Party Advisory)
- bugs.debian.org/930024 (Mailing List, Third Party Advisory)
- FEDORA-2019-d79f89346c (vendor-advisory)
- USN-4016-1 (vendor-advisory)
- USN-4016-2 (vendor-advisory)
- www.securityfocus.com/bid/108724 (vdb-entry)
- FEDORA-2019-dcd49378b8 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.