{"id":"UBUNTU-CVE-2016-1248","details":"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.","modified":"2026-01-30T01:18:23.358329Z","published":"2016-11-23T00:00:00Z","related":["USN-3139-1"],"upstream":["CVE-2016-1248"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-1248"},{"type":"REPORT","url":"http://openwall.com/lists/oss-security/2016/11/22/20"},{"type":"REPORT","url":"https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog"},{"type":"REPORT","url":"https://github.com/vim/vim/releases/tag/v8.0.0056"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html"},{"type":"REPORT","url":"https://lists.debian.org/debian-security-announce/2016/msg00305.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3139-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-1248"}],"affected":[{"package":{"name":"vim","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/vim@2:7.4.052-1ubuntu3.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.052-1ubuntu3.1"}]}],"versions":["2:7.4.000-1ubuntu2","2:7.4.052-1ubuntu1","2:7.4.052-1ubuntu2","2:7.4.052-1ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-athena"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-common"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-gnome"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-gtk"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-gui-common"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-lesstif"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-nox"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-runtime"},{"binary_version":"2:7.4.052-1ubuntu3.1","binary_name":"vim-tiny"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-1248.json"}},{"package":{"name":"vim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/vim@2:7.4.1689-3ubuntu1.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.1689-3ubuntu1.2"}]}],"versions":["2:7.4.712-2ubuntu4","2:7.4.826-1ubuntu1","2:7.4.826-1ubuntu2","2:7.4.826-1ubuntu3","2:7.4.963-1ubuntu1","2:7.4.963-1ubuntu4","2:7.4.963-1ubuntu5","2:7.4.1689-3ubuntu1","2:7.4.1689-3ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-athena"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-athena-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-common"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gnome"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gnome-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gtk"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gtk-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gtk3"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gtk3-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-gui-common"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-nox"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-nox-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-runtime"},{"binary_version":"2:7.4.1689-3ubuntu1.2","binary_name":"vim-tiny"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-1248.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}