{"id":"UBUNTU-CVE-2017-17087","details":"fileio.c in Vim prior to 8.0.1263 sets the group ownership of a .swp file to the editor's primary group (which may be different from the group ownership of the original file), which allows local users to obtain sensitive information by leveraging an applicable group membership, as demonstrated by /etc/shadow owned by root:shadow mode 0640, but /etc/.shadow.swp owned by root:users mode 0640, a different vulnerability than CVE-2017-1000382.","modified":"2026-01-30T02:09:18.865640Z","published":"2017-12-01T08:29:00Z","related":["USN-4582-1","USN-5147-1"],"upstream":["CVE-2017-17087"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-17087"},{"type":"REPORT","url":"http://openwall.com/lists/oss-security/2017/11/27/2"},{"type":"REPORT","url":"http://security.cucumberlinux.com/security/details.php?id=166"},{"type":"REPORT","url":"https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4582-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5147-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-17087"}],"affected":[{"package":{"name":"vim","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/vim@2:7.4.052-1ubuntu3.1+esm4?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.052-1ubuntu3.1+esm4"}]}],"versions":["2:7.4.000-1ubuntu2","2:7.4.052-1ubuntu1","2:7.4.052-1ubuntu2","2:7.4.052-1ubuntu3","2:7.4.052-1ubuntu3.1","2:7.4.052-1ubuntu3.1+esm1","2:7.4.052-1ubuntu3.1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-athena"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-common"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-gnome"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-gtk"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-gui-common"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-lesstif"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-nox"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-runtime"},{"binary_version":"2:7.4.052-1ubuntu3.1+esm4","binary_name":"vim-tiny"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-17087.json"}},{"package":{"name":"vim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/vim@2:7.4.1689-3ubuntu1.5?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.1689-3ubuntu1.5"}]}],"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","2:7.4.1689-3ubuntu1.2","2:7.4.1689-3ubuntu1.3","2:7.4.1689-3ubuntu1.4"],"ecosystem_specific":{"binaries":[{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-athena"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-athena-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-common"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gnome"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gnome-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gtk"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gtk-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gtk3"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gtk3-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-gui-common"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-nox"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-nox-py2"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-runtime"},{"binary_version":"2:7.4.1689-3ubuntu1.5","binary_name":"vim-tiny"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-17087.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"low"}]}