cve.bz

CVE-2016-1248 Improper Input Validation

7.8 highEPSS 25%Fix available

High (7.8). EPSS 25% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
25% (unchanged from 25% a week ago; 25% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-1248 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-1248?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-1248?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-1248 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimthrough 8.0.0055
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7vim2:7.3.547-7+deb7u1DLA-718-1
Debian8vim2:7.4.488-7+deb8u1DSA-3722-1
Debian12, 13, 14neovim0.1.6-4DEBIAN-CVE-2016-1248
Debian12, 13, 14vim2:8.0.0095-1DEBIAN-CVE-2016-1248
Ubuntu14.04:LTSvim2:7.4.052-1ubuntu3.1UBUNTU-CVE-2016-1248 USN-3139-1
Ubuntu16.04:LTSvim2:7.4.1689-3ubuntu1.2UBUNTU-CVE-2016-1248 USN-3139-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morevim, vim-X11, vim-common and 4 more2:7.4.629-5.el6_8.1RHSA-2016:2972
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morevim, vim-X11, vim-common and 4 more2:7.4.160-1.el7_3.1RHSA-2016:2972
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP1 and 4 morevim7.4.326-7.1SUSE-SU-2016:2942-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4vim7.2-8.17.1SUSE-SU-2016:2938-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 5 morevim9.0.0814-17.9.1SUSE-SU-2022:4619-1
Alpinev3.2vim7.4.712-r1ALPINE-CVE-2016-1248
Alpinev3.3vim7.4.943-r4ALPINE-CVE-2016-1248
Alpinev3.4vim7.4.1831-r2ALPINE-CVE-2016-1248
Alpinev3.5, v3.6, v3.7 and 17 moreneovim0.1.6-r1ALPINE-CVE-2016-1248
Alpinev3.5, v3.6, v3.7 and 17 morevim8.0.0056-r0ALPINE-CVE-2016-1248

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Disabling modeline support in .vimrc by adding "set nomodeline" will prevent exploitation of this flaw. By default, modeline is enabled for ordinary users but disabled for root.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6vim-2:7.4.629-5.el6_8.1Fixed 2016-12-21RHSA-2016:2972
Red Hat Enterprise Linux 7vim-2:7.4.160-1.el7_3.1Fixed 2016-12-21RHSA-2016:2972
Red Hat Enterprise Linux 5vimWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-1248.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON