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.
No public exploit knownFixVendor fixNo build named by the sources
e.g. OID 1.3.6.1.4.1.25623.1.0.140985
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- Check which Vim you run (for example, run
vim --version) and confirm whether it is older than 8.0.0056. - If your Vim version is older than 8.0.0056, plan an upgrade to Vim 8.0.0056 or later.
- 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.
- 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.
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 recordCVE-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.
- 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.
- EPSS band changelow → moderateepss band change
- EPSS band changemoderate → lowepss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → low
Affected products
And 1 more affected product. See all after sign-in
Technical detail
CVSS 3.0 vector
Open in the CVSS calculatorCVSS: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.
- Initial AccessT1190Exploit Public-Facing Applicationlow confidence
Sources
References in the record
- openwall.com/lists/oss-security/2016/11/22/20
- rhn.redhat.com/errata/RHSA-2016-2972.html
- debian.org/security/2016/dsa-3722
And 10 more references. See all after sign-in
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 articlesWatch 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.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI