Description
The Netrw plugin 125 in netrw.vim in Vim 7.2a.10 allows user-assisted attackers to execute arbitrary code via shell metacharacters in filenames used by the execute and system functions within the (1) mz and (2) mc commands, as demonstrated by the netrw.v2 and netrw.v3 test cases. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2008-2712.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | vim | 2:7.2.010-1 | — |
| Debian 13 | vim | 2:7.2.010-1 | — |
| Debian 12 | vim | 2:7.2.010-1 | — |
| Debian 4.0 | vim | 1:7.0-122+1etch5 | DSA-1733-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Netrw 125 Vim Script - Multiple Command Execution Vulnerabilities EDB-32012 · remote · Jul 7, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1733-1 vim - multiple vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- SUSE-SR:2009:007 vendor-advisory
- [oss-security] 20081016 CVE request - Vim netrw.plugin mailing-list
- [oss-security] 20081020 CVE request (vim) mailing-list
- http://www.rdancer.org/vulnerablevim-netrw.html
- RHSA-2008:0580 vendor-advisory
- 34418 third-party-advisory
- [oss-security] 20080707 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10 mailing-list
- 30115 vdb-entry
- http://www.rdancer.org/vulnerablevim-netrw.v2.html
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0324
- 20080701 Re: Collection of Vulnerabilities in Fully Patched Vim 7.1 mailing-list
- [oss-security] 20080708 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10 mailing-list
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506919
- netrw-multiple-code-execution(43624) vdb-entry
- [oss-security] 20080707 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10 mailing-list
- MDVSA-2008:236 vendor-advisory