CVE-2017-17087 Information disclosure in n/a
Local attackers can read sensitive files by exploiting incorrect group ownership on Vim swap files, potentially exposing data like /etc/shadow.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-17087?
CVE-2017-17087 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 1 Dec 2017. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-668
Which versions are affected by CVE-2017-17087?
It affects 3 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Vim Vim.
How do I fix CVE-2017-17087?
Upgrade to a fixed version.
Is CVE-2017-17087 being exploited?
There is no known exploitation of CVE-2017-17087 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2017-17087, GHSA-fmc8-f7rh-x4p9, UBUNTU-CVE-2017-17087.