CVE-2017-17087 json
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 gr…
published 2017-12-01 8 y ago modified 2026-06-17 4 mo ago also EUVD-2017-8253
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- vim vim 8.0.1263
- vim Debian 14, Debian 13, Debian 12 2:8.0.1401-1
debian advisories DEBIAN-CVE-2017-17087
- vim Ubuntu 16.04 LTS 2:7.4.1689-3ubuntu1.5
- vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm4
ubuntu advisories UBUNTU-CVE-2017-17087
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- vim SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +5 more 9.0.0814-17.9.1
- vim SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +24 more 8.2.5038-150000.5.21.1
suse advisories SUSE-SU-2022:4619-1SUSE-SU-2022:2102-1
- github.com/vim/vim@5a73e0c commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-17087 updated cvss 5.5
vim: Sets the group ownership of a .swp file to the editor's primary group
-
Red Hat Enterprise Linux 5 vim Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystemaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-668 Exposure of Resource to Wrong Sphere
References
-
github.com
/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8
patch, third-party-advisory
-
usn.ubuntu.com
/4582-1/
vendor-advisory, third-party-advisory
-
groups.google.com
/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ
issue-tracking, mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2017/11/27/2
mailing-list
-
security.cucumberlinux.com
/security/details.php?id=166
issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/08/msg00003.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/01/msg00003.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2017-17087
- NVD CVE-2017-17087
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.