Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2019-12735 PoC — Vim 操作系统命令注入漏洞

Source
Associated Vulnerability
Title:Vim 操作系统命令注入漏洞 (CVE-2019-12735)
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.
Description
Docker image that lets me study the exploitation of the VIM exploit
Readme
# cve-2019-12735
Docker image that lets me study the exploitation of the VIM exploit [here](https://www.exploit-db.com/exploits/46973)

# Affected Software
- Vim 8.1.1365 (up to and excluding)
- NeoVim 0.3.6 (up to and excluding)

# Install
```bash
# on Host
$ make build
$ make run
$ make attach   # This brings you into the container with the vulnerable Vim

# In docker container
$ vim exploit/poc.txt
```

# Fix
The commit that [fixes it](https://github.com/vim/vim/commit/53575521406739cf20bbe4e384d88e7dca11f040).
![image](https://user-images.githubusercontent.com/12999836/119934249-1446bd00-bfb8-11eb-9037-36e2477adaa0.png)



# Credits
Environment setup inspired by LiveOverflow's [pwnedit](https://github.com/LiveOverflow/pwnedit)
File Snapshot

[4.0K] /data/pocs/4ca0f2ab4e9dda3a3dac03d195f815e44fc0b1c1 ├── [ 605] Dockerfile ├── [1.0K] LICENSE ├── [ 341] Makefile └── [ 741] README.md 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →