Improper input validation in vim before patch 8.0.0056
Priority MEDIUM 55CWE-20Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 10 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
EPSS 0.25314 97th percentileScored 2026-11-07
Fix Partial Red Hat: 1 advisoryRed Hat: 10 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | vim before patch 8.0.0056 | vim before patch 8.0.0056 | — | No fix listed | CNA |
- vim before patch 8.0.0056 Vendor— Affected vim before patch 8.0.0056 Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2016:2972 Released 2016-12-21 · Red Hat rating Moderatevim security update
- Red Hat Enterprise Linux Client (v. 7) vim-2:7.4.160-1.el7_3.1, vim-X11-2:7.4.160-1.el7_3.1, vim-common-2:7.4.160-1.el7_3.1 +3
- Red Hat Enterprise Linux ComputeNode (v. 7) vim-2:7.4.160-1.el7_3.1, vim-common-2:7.4.160-1.el7_3.1, vim-enhanced-2:7.4.160-1.el7_3.1 +2
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) vim-X11-2:7.4.160-1.el7_3.1
- Red Hat Enterprise Linux Desktop (v. 6) vim-2:7.4.629-5.el6_8.1, vim-X11-2:7.4.629-5.el6_8.1, vim-common-2:7.4.629-5.el6_8.1 +3
- Red Hat Enterprise Linux HPC Node (v. 6) vim-2:7.4.629-5.el6_8.1, vim-common-2:7.4.629-5.el6_8.1, vim-enhanced-2:7.4.629-5.el6_8.1 +2
- Red Hat Enterprise Linux HPC Node Optional (v. 6) vim-X11-2:7.4.629-5.el6_8.1
- Red Hat Enterprise Linux Server (v. 6) vim-2:7.4.629-5.el6_8.1, vim-X11-2:7.4.629-5.el6_8.1, vim-common-2:7.4.629-5.el6_8.1 +3
- Red Hat Enterprise Linux Server (v. 7) vim-2:7.4.160-1.el7_3.1, vim-X11-2:7.4.160-1.el7_3.1, vim-common-2:7.4.160-1.el7_3.1 +3
- Red Hat Enterprise Linux Workstation (v. 6) vim-2:7.4.629-5.el6_8.1, vim-X11-2:7.4.629-5.el6_8.1, vim-common-2:7.4.629-5.el6_8.1 +3
- Red Hat Enterprise Linux Workstation (v. 7) vim-2:7.4.160-1.el7_3.1, vim-X11-2:7.4.160-1.el7_3.1, vim-common-2:7.4.160-1.el7_3.1 +3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2016:2972 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2016:2972 |
Timeline
- 2026-10-02 Threatist record created from CVE-2016-1248
- 2026-10-03 Alias added: GHSA-6q4x-827v-ffwx
References
Patch 5
- http://openwall.com/lists/oss-security/2016/11/22/20
- https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
- https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040
- https://github.com/vim/vim/releases/tag/v8.0.0056
- https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog
Sources
- CVE-2016-1248 · CVE Program
- CVE-2016-1248 · NVD
- FIRST EPSS
- GHSA-6q4x-827v-ffwx · GitHub Advisory Database · CC BY 4.0
- CVE-2016-1248 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences