← Vulnerability feed

Vulnerability record · CVE-2016-1248 · published 23 November 2016

CVE-2016-1248: Vim improper input validation vulnerability

Vim · Vim

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.

7.8 CVSS 3.0 High EPSS 25% · top 2.1% CWE-20 · Improper input validation
7.8CVSS 3.0 base score, v2 6.8
25%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
26References
17 Jun 2026Last modified by NVD

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.

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

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://openwall.com/lists/oss-security/2016/11/22/20 PatchThird Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2972.html
http://www.debian.org/security/2016/dsa-3722
http://www.securityfocus.com/bid/94478
http://www.securitytracker.com/id/1037338
http://www.ubuntu.com/usn/USN-3139-1
https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog PatchThird Party Advisory
https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 PatchVendor Advisory
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a PatchVendor Advisory
https://github.com/vim/vim/releases/tag/v8.0.0056 PatchVendor Advisory
https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-security-announce/2016/msg00305.html Third Party Advisory
https://security.gentoo.org/glsa/201701-29
http://openwall.com/lists/oss-security/2016/11/22/20 PatchThird Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2972.html
http://www.debian.org/security/2016/dsa-3722
http://www.securityfocus.com/bid/94478
http://www.securitytracker.com/id/1037338
http://www.ubuntu.com/usn/USN-3139-1
https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog PatchThird Party Advisory
https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 PatchVendor Advisory
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a PatchVendor Advisory
https://github.com/vim/vim/releases/tag/v8.0.0056 PatchVendor Advisory
https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-security-announce/2016/msg00305.html Third Party Advisory
https://security.gentoo.org/glsa/201701-29

Track CVE-2016-1248 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2016-1248), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.