All reports
Medium

vim: Lack of validation of values for few options results in code exection

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2016-1248

Probability of exploitation in the next 30 days: 25.31%

FIRST EPSS · 2026-11-19

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.

A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim.