{"api_version":"1","generated_at":"2026-04-23T01:18:37+00:00","cve":"CVE-2017-17087","urls":{"html":"https://cve.report/CVE-2017-17087","api":"https://cve.report/api/cve/CVE-2017-17087.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-17087","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-17087"},"summary":{"title":"CVE-2017-17087","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2017-12-01 08:29:00","updated_at":"2022-02-20 05:58:00"},"problem_types":["CWE-668"],"metrics":[],"references":[{"url":"http://openwall.com/lists/oss-security/2017/11/27/2","name":"http://openwall.com/lists/oss-security/2017/11/27/2","refsource":"MISC","tags":["Mailing List"],"title":"oss-security - Re: Re: Security risk of server side text editing ...","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8","name":"https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8","refsource":"MISC","tags":["Patch"],"title":"patch 8.0.1263: others can read the swap file if a user is careless · vim/vim@5a73e0c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ","name":"https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ","refsource":"MISC","tags":["Mailing List"],"title":"Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00003.html","name":"[debian-lts-announce] 20190803 [SECURITY] [DLA 1871-1] vim security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 1871-1] vim security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00003.html","name":"[debian-lts-announce] 20220110 [SECURITY] [DLA 2876-1] vim security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2876-1] vim security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://usn.ubuntu.com/4582-1/","name":"USN-4582-1","refsource":"UBUNTU","tags":[],"title":"USN-4582-1: Vim vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://security.cucumberlinux.com/security/details.php?id=166","name":"http://security.cucumberlinux.com/security/details.php?id=166","refsource":"MISC","tags":["Issue Tracking","Third Party Advisory"],"title":"CLD-166 Details","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-17087","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17087","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"17087","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"esm","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17087","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17087","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":"2017","cve_id":"17087","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17087","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vim","cpe5":"vim","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17087","vulnerable":"1","versionEndIncluding":"1","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-2017-17087","qid":"178990","title":"Debian Security Update for vim (DLA 2876-1)"},{"cve":"CVE-2017-17087","qid":"198571","title":"Ubuntu Security Notification for Vim Vulnerabilities (USN-5147-1)"},{"cve":"CVE-2017-17087","qid":"752246","title":"SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:2102-1)"},{"cve":"CVE-2017-17087","qid":"753066","title":"SUSE Enterprise Linux Security Update for vim (SUSE-SU-2022:4619-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2017-17087","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ","refsource":"MISC","url":"https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ"},{"name":"http://openwall.com/lists/oss-security/2017/11/27/2","refsource":"MISC","url":"http://openwall.com/lists/oss-security/2017/11/27/2"},{"name":"http://security.cucumberlinux.com/security/details.php?id=166","refsource":"MISC","url":"http://security.cucumberlinux.com/security/details.php?id=166"},{"name":"https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8","refsource":"MISC","url":"https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8"},{"refsource":"MLIST","name":"[debian-lts-announce] 20190803 [SECURITY] [DLA 1871-1] vim security update","url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00003.html"},{"refsource":"UBUNTU","name":"USN-4582-1","url":"https://usn.ubuntu.com/4582-1/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220110 [SECURITY] [DLA 2876-1] vim security update","url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00003.html"}]}},"nvd":{"publishedDate":"2017-12-01 08:29:00","lastModifiedDate":"2022-02-20 05:58:00","problem_types":["CWE-668"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","versionEndExcluding":"8.0.1263","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"17087","Ordinal":"115678","Title":"CVE-2017-17087","CVE":"CVE-2017-17087","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"17087","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2017","CveId":"17087","Ordinal":"2","NoteData":"2017-12-01","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"17087","Ordinal":"3","NoteData":"2022-01-10","Type":"Other","Title":"Modified"}]}}}