{"api_version":"1","generated_at":"2026-04-23T03:05:39+00:00","cve":"CVE-2016-1248","urls":{"html":"https://cve.report/CVE-2016-1248","api":"https://cve.report/api/cve/CVE-2016-1248.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-1248","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-1248"},"summary":{"title":"CVE-2016-1248","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.","state":"PUBLIC","assigner":"security@debian.org","published_at":"2016-11-23 15:59:00","updated_at":"2017-07-28 01:29:00"},"problem_types":["CWE-20"],"metrics":[],"references":[{"url":"http://www.ubuntu.com/usn/USN-3139-1","name":"USN-3139-1","refsource":"UBUNTU","tags":[],"title":"USN-3139-1: Vim vulnerability | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog","name":"https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"pkg-vim/vim - Debian's packaging of the Vim project","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://openwall.com/lists/oss-security/2016/11/22/20","name":"http://openwall.com/lists/oss-security/2016/11/22/20","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"oss-security - vim/neovim: Arbitrary command execution (CVE-2016-1248)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2016/dsa-3722","name":"DSA-3722","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-3722-1 vim","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vim/vim/releases/tag/v8.0.0056","name":"https://github.com/vim/vim/releases/tag/v8.0.0056","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"Release v8.0.0056: patch 8.0.0056 · vim/vim · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2972.html","name":"RHSA-2016:2972","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/201701-29","name":"GLSA-201701-29","refsource":"GENTOO","tags":[],"title":"Vim, gVim: Remote execution of arbitrary code (GLSA 201701-29) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securitytracker.com/id/1037338","name":"1037338","refsource":"SECTRACK","tags":[],"title":"Vim modeline 'filetype' Input Validation Flaw Lets Remote Users Execute Arbitrary Code - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040","name":"https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"vim-patch:8.0.0056 · neovim/neovim@4fad66f · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/94478","name":"94478","refsource":"BID","tags":[],"title":"Neovim CVE-2016-1248 Command Execution Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html","name":"[debian-lts-announce] 20161122 [SECURITY] [DLA 718-1] vim security update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 718-1] vim security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a","name":"https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"patch 8.0.0056 · vim/vim@d0b5138 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-security-announce/2016/msg00305.html","name":"https://lists.debian.org/debian-security-announce/2016/msg00305.html","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"[SECURITY] [DSA 3722-1] vim security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-1248","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-1248","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"1248","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"1248","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"1248","vulnerable":"1","versionEndIncluding":"8.0.0055","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vim","cpe5":"vim","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2016-1248","qid":"500721","title":"Alpine Linux Security Update for vim"},{"cve":"CVE-2016-1248","qid":"501090","title":"Alpine Linux Security Update for neovim"},{"cve":"CVE-2016-1248","qid":"504495","title":"Alpine Linux Security Update for vim"},{"cve":"CVE-2016-1248","qid":"710405","title":"Gentoo Linux Vim, gVim Remote execution of arbitrary code Vulnerability (GLSA 201701-29)"},{"cve":"CVE-2016-1248","qid":"753066","title":"SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:4619-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@debian.org","ID":"CVE-2016-1248","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"vim before patch 8.0.0056","version":{"version_data":[{"version_value":"vim before patch 8.0.0056"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"OS command injection"}]}]},"references":{"reference_data":[{"name":"https://lists.debian.org/debian-security-announce/2016/msg00305.html","refsource":"CONFIRM","url":"https://lists.debian.org/debian-security-announce/2016/msg00305.html"},{"name":"http://openwall.com/lists/oss-security/2016/11/22/20","refsource":"CONFIRM","url":"http://openwall.com/lists/oss-security/2016/11/22/20"},{"name":"GLSA-201701-29","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201701-29"},{"name":"DSA-3722","refsource":"DEBIAN","url":"http://www.debian.org/security/2016/dsa-3722"},{"name":"https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a","refsource":"CONFIRM","url":"https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a"},{"name":"[debian-lts-announce] 20161122 [SECURITY] [DLA 718-1] vim security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html"},{"name":"USN-3139-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/USN-3139-1"},{"name":"1037338","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1037338"},{"name":"https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040","refsource":"CONFIRM","url":"https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040"},{"name":"94478","refsource":"BID","url":"http://www.securityfocus.com/bid/94478"},{"name":"https://github.com/vim/vim/releases/tag/v8.0.0056","refsource":"CONFIRM","url":"https://github.com/vim/vim/releases/tag/v8.0.0056"},{"name":"RHSA-2016:2972","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2016-2972.html"},{"name":"https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog","refsource":"CONFIRM","url":"https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog"}]}},"nvd":{"publishedDate":"2016-11-23 15:59:00","lastModifiedDate":"2017-07-28 01:29:00","problem_types":["CWE-20"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","versionEndIncluding":"8.0.0055","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"1248","Ordinal":"86968","Title":"CVE-2016-1248","CVE":"CVE-2016-1248","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"1248","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2016","CveId":"1248","Ordinal":"2","NoteData":"2016-11-23","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"1248","Ordinal":"3","NoteData":"2018-02-01","Type":"Other","Title":"Modified"}]}}}