CVE Tools

CVE-2016-1248

CVE-2016-1248 is an input validation in Vim (CVSS 7.8, High).

Exploitation likely. EPSS gives it a 25% chance of exploitation in the next 30 days. A vendor fix is available.

Check it yourself

OpenVAS · 21 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.140985

Run the check

Published Updated Sources: CVE.org, NVD

What to do

The vendor has published a fix. Version details are below where the sources state them.

  • N/a Vim Before Patch 8.0.0056Affected: vim before patch 8.0.0056Upgrade to: not statedStated by: CVE record
  • VimAffected: ≤ 8.0.0055Upgrade to: after 8.0.0055Stated by: NVD

Versions as the sources state them. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Check which Vim you run (for example, run vim --version) and confirm whether it is older than 8.0.0056.
  2. If your Vim version is older than 8.0.0056, plan an upgrade to Vim 8.0.0056 or later.
  3. Pay special attention to workflows where staff open files from outside your organization (email attachments, downloaded archives, shared documents) in Vim, and restrict that if possible until you upgrade.
  4. After upgrading, test that your usual Vim usage still works (especially any reliance on modelines or filetype/syntax auto-detection) and remove any unusually configured modeline behavior if you had it customized.
Check it yourselfA free OpenVAS check exists for this CVE. Run it against your hosts.
Is your organisation exposed?Request a free pilot to establish which checks fit your systems.

SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.

What it is

From the CVE record

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.

In plain language

Written by AI from the record

CVE-2016-1248 is a Vim bug where opening a carefully crafted text file can trick Vim into running arbitrary code via “modeline” settings; most small businesses should treat this as a medium-term risk and update Vim if you use it to open files from untrusted sources.

CVE-2016-1248 is a Vim input-validation flaw (CWE-20) in how “filetype”, “syntax”, and “keymap” modeline values are validated; a specially crafted modeline in a text file can lead to arbitrary code execution when the file is opened in Vim, and the fixed version is 8.0.0056.

If you're affected

  • Arbitrary code execution
  • Full account compromise
  • Ransomware risk
  • Data theft risk

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS98th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

25% chance of exploitation activity in the next 30 days, which ranks it in the 98th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

23 events over 3591 days, from the signal feeds we watch.

  1. EPSS band changelow → moderateepss band change
  2. EPSS band changemoderate → lowepss band change
  3. EPSS band change0 → moderateepss band change
  4. EPSS band changemoderate → 0epss band change
  5. EPSS band change0 → moderateepss band change
  6. EPSS band changemoderate → low

Affected products

And 1 more affected product. See all after sign-in

Technical detail

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Scored 7.8 by NVD.

How it is reached

  • Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2016-1248

Is CVE-2016-1248 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 25%.
Which versions are affected by CVE-2016-1248?
Vim: ≤ 8.0.0055. Vim Before Patch 8.0.0056: vim before patch 8.0.0056.
How do I fix or mitigate CVE-2016-1248?
The vendor has published a fix. The advisory is on openwall.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Vim, not every advisory.