Description
vim before patch 8.0.0056 does not properly validate values for the 'filetype', 'syntax' and 'keymap' options, which may result in the execution of arbitrary code if a file with a specially crafted modeline is opened.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | vim before patch 8.0.0056 | vim before patch 8.0.0056 | — |
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 | neovim | 0.1.6-4 | — |
| Debian 14 | vim | 2:8.0.0095-1 | — |
| Debian 13 | neovim | 0.1.6-4 | — |
| Debian 13 | vim | 2:8.0.0095-1 | — |
| Debian 12 | neovim | 0.1.6-4 | — |
| Debian 12 | vim | 2:8.0.0095-1 | — |
| Debian 8 | vim | 2:7.4.488-7+deb8u1 | DSA-3722-1 |
| Debian 7 | vim | 2:7.3.547-7+deb7u1 | DLA-718-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.2 | USN-3139-1 |
| Ubuntu 14.04 LTS | vim | 2:7.4.052-1ubuntu3.1 | USN-3139-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | vim +5 | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| RHEL 6 | vim +5 | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP3 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP2 | vim | 7.4.326-7.1 | SUSE-SU-2022:4619-1, SUSE-SU-2016:2942-1 |
| SLES 12 SP1 | vim | 7.4.326-7.1 | SUSE-SU-2016:2942-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | vim | 7.2-8.17.1 | SUSE-SU-2016:2938-1 |
| SLES for SAP 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 12 SP2 | vim | 7.4.326-7.1 | SUSE-SU-2016:2942-1 |
| SLES for SAP 12 SP1 | vim | 7.4.326-7.1 | SUSE-SU-2016:2942-1 |
| SLES for SAP 11 SP4 | vim | 7.2-8.17.1 | SUSE-SU-2016:2938-1 |
| SUSE OpenStack Cloud Crowbar 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SUSE OpenStack Cloud 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | neovim | 0.1.6-r1 | — |
| Alpine v3.24 | vim | 8.0.0056-r0 | — |
| Alpine v3.23 | neovim | 0.1.6-r1 | — |
| Alpine v3.23 | vim | 8.0.0056-r0 | — |
| Alpine v3.22 | neovim | 0.1.6-r1 | — |
| Alpine v3.22 | vim | 8.0.0056-r0 | — |
| Alpine v3.21 | neovim | 0.1.6-r1 | — |
| Alpine v3.21 | vim | 8.0.0056-r0 | — |
| Alpine v3.20 | neovim | 0.1.6-r1 | — |
| Alpine v3.20 | vim | 8.0.0056-r0 | — |
Show 18 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | neovim | 0.1.6-r1 | — |
| Alpine v3.19 | vim | 8.0.0056-r0 | — |
| Alpine v3.18 | neovim | 0.1.6-r1 | — |
| Alpine v3.18 | vim | 8.0.0056-r0 | — |
| Alpine v3.17 | neovim | 0.1.6-r1 | — |
| Alpine v3.17 | vim | 8.0.0056-r0 | — |
| Alpine v3.16 | neovim | 0.1.6-r1 | — |
| Alpine v3.16 | vim | 8.0.0056-r0 | — |
| Alpine v3.15 | neovim | 0.1.6-r1 | — |
| Alpine v3.15 | vim | 8.0.0056-r0 | — |
| Alpine v3.14 | neovim | 0.1.6-r1 | — |
| Alpine v3.14 | vim | 8.0.0056-r0 | — |
| Alpine v3.13 | neovim | 0.1.6-r1 | — |
| Alpine v3.13 | vim | 8.0.0056-r0 | — |
| Alpine v3.12 | neovim | 0.1.6-r1 | — |
| Alpine v3.12 | vim | 8.0.0056-r0 | — |
| Alpine v3.11 | neovim | 0.1.6-r1 | — |
| Alpine v3.11 | vim | 8.0.0056-r0 | — |
| Alpine v3.10 | neovim | 0.1.6-r1 | — |
| Alpine v3.10 | vim | 8.0.0056-r0 | — |
| Alpine v3.9 | neovim | 0.1.6-r1 | — |
| Alpine v3.9 | vim | 8.0.0056-r0 | — |
| Alpine v3.8 | neovim | 0.1.6-r1 | — |
| Alpine v3.8 | vim | 8.0.0056-r0 | — |
| Alpine v3.7 | neovim | 0.1.6-r1 | — |
| Alpine v3.7 | vim | 8.0.0056-r0 | — |
| Alpine v3.6 | neovim | 0.1.6-r1 | — |
| Alpine v3.6 | vim | 8.0.0056-r0 | — |
| Alpine v3.5 | neovim | 0.1.6-r1 | — |
| Alpine v3.5 | vim | 8.0.0056-r0 | — |
| Alpine v3.4 | vim | 7.4.1831-r2 | — |
| Alpine v3.3 | vim | 7.4.943-r4 | — |
| Alpine v3.2 | vim | 7.4.712-r1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | vim-X11 +4 | 2:7.4.629-5.el6_8.1 | ELSA-2016-2972 |
Advisories 8
- RHSA-2016:2972 Red Hat Security Advisory: vim security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- DLA-718-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3722-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3139-1 vim vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2016:2942-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4619-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2938-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2016-2972 Moderate: vim security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Dec 20, 2016
References
- https://lists.debian.org/debian-security-announce/2016/msg00305.html
- http://openwall.com/lists/oss-security/2016/11/22/20
- GLSA-201701-29 vendor-advisory
- DSA-3722 vendor-advisory
- https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
- [debian-lts-announce] 20161122 [SECURITY] [DLA 718-1] vim security update mailing-list
- USN-3139-1 vendor-advisory
- 1037338 vdb-entry
- https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040
- 94478 vdb-entry
- https://github.com/vim/vim/releases/tag/v8.0.0056
- RHSA-2016:2972 vendor-advisory
- https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog