CVE-2016-1248: Input Validation

Published Nov 23, 2016
·
Updated

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 Software

45 affected componentsFixes available
vim Vim<=8.0.0055
Debian Debian Linux=8.0
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/neovim<0.1.6-r1
0.1.6-r1
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<7.4.712-r1
7.4.712-r1
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<7.4.943-r4
7.4.943-r4
alpine/vim<7.4.1831-r2
7.4.1831-r2
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0
alpine/vim<8.0.0056-r0
8.0.0056-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/neovim to a version that resolves this vulnerability.

    Fixed in 0.1.6-r1
  2. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 8.0.0056-r0
  3. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 7.4.712-r1
  4. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 7.4.943-r4
  5. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 7.4.1831-r2
  6. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in 8.0.0056

Event History

Nov 23, 2016
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionWeakness
Data Sourced
via NVD·03:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:59 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2016-1248?

CVE-2016-1248 is considered a critical vulnerability due to the potential for arbitrary code execution.

2

How do I fix CVE-2016-1248?

To fix CVE-2016-1248, update Vim to version 8.0.0056 or later.

3

What versions of Vim are affected by CVE-2016-1248?

Vim versions prior to 8.0.0056 are affected by CVE-2016-1248.

4

What types of systems are impacted by CVE-2016-1248?

CVE-2016-1248 impacts systems running affected versions of Vim, including certain Debian Linux distributions.

5

What are modelines in the context of CVE-2016-1248?

Modelines are lines in a file that can set editor options, and if crafted maliciously, they can exploit CVE-2016-1248.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203