The shellescape function in Vim 7.0 through 7.2, including 7.2a.10, allows user-assisted attackers to execute arbitrary code via the "!" (ex
The shellescape function in Vim 7.0 through 7.2, including 7.2a.10, allows user-assisted attackers to execute arbitrary code via the "!" (exclamation point) shell metacharacter in (1) the filename of a ZIP archive and possibly (2) the filename of the first file in a ZIP archive, which is not properly handled by zip.vim in the VIM ZIP plugin (zipPlugin.vim) v.11 through v.21, as demonstrated by the zipplugin and zipplugin.v2 test cases. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2008-2712. NOTE: this issue has the same root cause as CVE-2008-3074. NOTE: due to the complexity of the associated disclosures and the incomplete information related to them, there may be inaccuracies in this CVE description and in external mappings to this identifier.
- Published
- Feb 21, 2009
- Updated
- Jun 16, 2026
- EPSS
- 4.3% · 91th percentile
- CWE
- CWE-94
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
38
Monitor
Low priority for now.
- CVSS
- 37 / 40 · 9.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.3%
Affected systems
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- vim vim7.0
- vim vim7.1
- vim vim7.1.266
- vim vim7.1.314
- vim vim7.2
- vim vim7.2a.10
- vim zipplugin.vimv.11
- vim zipplugin.vimv.12
- vim zipplugin.vimv.13
- vim zipplugin.vimv.14
- vim zipplugin.vimv.15
- vim zipplugin.vimv.16
- vim zipplugin.vimv.17
- vim zipplugin.vimv.18
- vim zipplugin.vimv.19
- vim zipplugin.vimv.20
- vim zipplugin.vimv.21
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | vim | before 2:7.2.010-1 | 2:7.2.010-1 |
| Debian:4.0 | vim | before 1:7.0-122+1etch5 | 1:7.0-122+1etch5 |
| Red Hat:enterprise_linux:5::client | vim | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
| Red Hat:enterprise_linux:5::client | vim-common | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
| Red Hat:enterprise_linux:5::client | vim-debuginfo | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
| Red Hat:enterprise_linux:5::client | vim-enhanced | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
| Red Hat:enterprise_linux:5::client | vim-minimal | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
| Red Hat:enterprise_linux:5::client | vim-X11 | before 2:7.0.109-4.el5_2.4z | 2:7.0.109-4.el5_2.4z |
Same product
vim: all recordsOther highest-scoring records for the same primary product.
- CVE-2008-2712Vim 7.1.314, 6.4, and other versions allows user-assisted remote attackers to execute arbitrary commands via Vim scripts that do not properl42Plan
- CVE-2022-0318Heap-based Buffer Overflow in vim/vim40Plan
- CVE-2019-12735getchar.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 i40Plan
- CVE-2017-6350An integer overflow at an unserialize_uep memory allocation site would occur for vim before patch 8.0.0378, if it does not properly validate40Plan
- CVE-2017-6349An integer overflow at a u_read_undo memory allocation site would occur for vim before patch 8.0.0377, if it does not properly validate valu40Plan
- CVE-2017-5953vim before patch 8.0.0322 does not properly validate values for tree length when handling a spell file, which may result in an integer overf40Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:vim | 2:7.2.010-1 · Debian:12 | Package registry (OSV) |
| red hat:vim | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:vim-common | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:vim-debuginfo | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:vim-enhanced | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:vim-minimal | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:vim-X11 | 2:7.0.109-4.el5_2.4z · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-94 · Improper Control of Generation of Code ('Code Injection')CVSS vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=506919
- lists.opensuse.org/opensuse-security-announce/2009-03/msg00004.html
- marc.info/?l=bugtraq&m=121494431426308&w=2
- secunia.com/advisories/34418
- wiki.rpath.com/wiki/Advisories:rPSA-2008-0324
- www.mandriva.com/security/advisories?name=MDVSA-2008:236
- www.openwall.com/lists/oss-security/2008/07/07/4
- www.openwall.com/lists/oss-security/2008/07/08/12
- www.openwall.com/lists/oss-security/2008/07/10/7
- www.openwall.com/lists/oss-security/2008/07/13/1
- www.openwall.com/lists/oss-security/2008/07/15/4
- www.openwall.com/lists/oss-security/2008/08/01/1
- www.openwall.com/lists/oss-security/2008/10/15/1
- www.openwall.com/lists/oss-security/2008/10/20/2
- www.redhat.com/support/errata/RHSA-2008-0580.html
- www.securityfocus.com/bid/32463
- bugzilla.redhat.com/show_bug.cgi?id=467432
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10246
Vendor advisories and official records. Exploit/PoC links are deliberately left out.