CVE-2016-1248
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.
What to do
Likely to be exploited: EPSS gives a 25% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | vim | Fixed | 2:7.4.1689-3ubuntu1.2 | UBUNTU-CVE-2016-1248 |
| Ubuntu 14.04 | vim | Fixed | 2:7.4.052-1ubuntu3.1 | UBUNTU-CVE-2016-1248 |
| Debian 14 | neovim | Fixed | 0.1.6-4 | DEBIAN-CVE-2016-1248 |
| Debian 14 | vim | Fixed | 2:8.0.0095-1 | DEBIAN-CVE-2016-1248 |
| Debian 13 | neovim | Fixed | 0.1.6-4 | DEBIAN-CVE-2016-1248 |
| Debian 13 | vim | Fixed | 2:8.0.0095-1 | DEBIAN-CVE-2016-1248 |
| Debian 12 | neovim | Fixed | 0.1.6-4 | DEBIAN-CVE-2016-1248 |
| Debian 12 | vim | Fixed | 2:8.0.0095-1 | DEBIAN-CVE-2016-1248 |
| Red Hat Enterprise Linux 7 | vim | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 7 | vim-X11 | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 7 | vim-common | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 7 | vim-enhanced | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 7 | vim-filesystem | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 7 | vim-minimal | Fixed | 2:7.4.160-1.el7_3.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim-X11 | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim-common | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim-enhanced | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim-filesystem | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 6 | vim-minimal | Fixed | 2:7.4.629-5.el6_8.1 | RHSA-2016:2972 |
| Red Hat Enterprise Linux 5 | vim | Will not fix Will not fix | ||
| Alpine Linux 3.24 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.24 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.23 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.23 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.22 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.22 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.21 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.21 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.20 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.20 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.19 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.19 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.18 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.18 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.17 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.17 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.16 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.16 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.15 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.15 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.14 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.14 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.13 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.13 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.12 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.12 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.11 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.11 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.10 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.10 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.9 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.9 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.8 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.8 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.7 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.7 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.6 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.6 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.5 | neovim | Fixed | 0.1.6-r1 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.5 | vim | Fixed | 8.0.0056-r0 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.4 | vim | Fixed | 7.4.1831-r2 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.3 | vim | Fixed | 7.4.943-r4 | ALPINE-CVE-2016-1248 |
| Alpine Linux 3.2 | vim | Fixed | 7.4.712-r1 | ALPINE-CVE-2016-1248 |
What the vendor says
As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- vim before patch 8.0.0056: affected: vim before patch 8.0.0056
Vendor advisories:
- https://security.gentoo.org/glsa/201701-29 (vendor-advisory)
- http://www.debian.org/security/2016/dsa-3722 (vendor-advisory)
- http://www.ubuntu.com/usn/USN-3139-1 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-2972.html (vendor-advisory)
References
- https://lists.debian.org/debian-security-announce/2016/msg00305.html
- http://openwall.com/lists/oss-security/2016/11/22/20
- https://security.gentoo.org/glsa/201701-29
- http://www.debian.org/security/2016/dsa-3722
- https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
- https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html
- http://www.ubuntu.com/usn/USN-3139-1
- http://www.securitytracker.com/id/1037338
- https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040
- http://www.securityfocus.com/bid/94478
- https://github.com/vim/vim/releases/tag/v8.0.0056
- http://rhn.redhat.com/errata/RHSA-2016-2972.html
- https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.