CVEfocus › CVE database › CVE-2017-17087

CVE-2017-17087

CVSS 5.5 MediumEPSS 0.4% (higher than 30% of CVEs)Published 2017-12-01Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
13Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04vimNot affected
vulnerable_code_not_present
Ubuntu 16.04vimFixed2:7.4.1689-3ubuntu1.5UBUNTU-CVE-2017-17087
Ubuntu 14.04vimFix pending2:7.4.052-1ubuntu3.1+esm4 (Ubuntu Pro)UBUNTU-CVE-2017-17087
Debian 14vimFixed2:8.0.1401-1DEBIAN-CVE-2017-17087
Debian 13vimFixed2:8.0.1401-1DEBIAN-CVE-2017-17087
Debian 12vimFixed2:8.0.1401-1DEBIAN-CVE-2017-17087
Red Hat Enterprise Linux 7vimWill not fix
Will not fix
Red Hat Enterprise Linux 7vim-X11Will not fix
Will not fix
Red Hat Enterprise Linux 7vim-commonWill not fix
Will not fix
Red Hat Enterprise Linux 7vim-enhancedWill not fix
Will not fix
Red Hat Enterprise Linux 7vim-filesystemWill not fix
Will not fix
Red Hat Enterprise Linux 7vim-minimalWill not fix
Will not fix
Red Hat Enterprise Linux 6vimWill not fix
Will not fix
Red Hat Enterprise Linux 6vim-X11Will not fix
Will not fix
Red Hat Enterprise Linux 6vim-commonWill not fix
Will not fix
Red Hat Enterprise Linux 6vim-enhancedWill not fix
Will not fix
Red Hat Enterprise Linux 6vim-filesystemWill not fix
Will not fix
Red Hat Enterprise Linux 6vim-minimalWill not fix
Will not fix
Red Hat Enterprise Linux 5vimWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.