CVE-2017-17087 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...
MediumCVSS 5.5
EPSS 0.36%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/vim(Debian 12) | < 2:8.0.1401-1 | 2:8.0.1401-1 | Fixed |
| debian/vim(Debian 13) | < 2:8.0.1401-1 | 2:8.0.1401-1 | Fixed |
| debian/vim(Debian 14) | < 2:8.0.1401-1 | 2:8.0.1401-1 | Fixed |
| ubuntu/vim(Ubuntu 16.04) | < 2:7.4.1689-3ubuntu1.5; = 2:7.4.712-2ubuntu4; = 2:7.4.826-1ubuntu1; = 2:7.4.826-1ubuntu2 +9 more | 2:7.4.1689-3ubuntu1.5 | Fixed |
| ubuntu/vim(Ubuntu Pro 14.04) | < 2:7.4.052-1ubuntu3.1+esm4; = 2:7.4.000-1ubuntu2; = 2:7.4.052-1ubuntu1; = 2:7.4.052-1ubuntu2 +4 more | 2:7.4.052-1ubuntu3.1+esm4 | Fixed |
| vim | < 8.0.1263 | 8.0.1263 | Fixed |
| Canonical Ubuntu Linux | = 16.04; = 18.04 | No fix listed | Versions listed |
| debian linux | = 8.0; = 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/vim(Debian:12) | < 2:8.0.1401-1 | 2:8.0.1401-1 |
| debian/vim(Debian:13) | < 2:8.0.1401-1 | 2:8.0.1401-1 |
| debian/vim(Debian:14) | < 2:8.0.1401-1 | 2:8.0.1401-1 |
| vim | < 8.0.1263 | 8.0.1263 |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | < 2:7.4.052-1ubuntu3.1+esm4 | 2:7.4.052-1ubuntu3.1+esm4 |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.000-1ubuntu2 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu1 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu2 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu3 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu3.1 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu3.1+esm1 | No fix listed |
| ubuntu/vim(Ubuntu:Pro:14.04) | = 2:7.4.052-1ubuntu3.1+esm3 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | < 2:7.4.1689-3ubuntu1.5 | 2:7.4.1689-3ubuntu1.5 |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.712-2ubuntu4 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.826-1ubuntu1 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.826-1ubuntu2 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.826-1ubuntu3 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.963-1ubuntu1 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.963-1ubuntu4 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.963-1ubuntu5 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.1689-3ubuntu1 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.1689-3ubuntu1.1 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.1689-3ubuntu1.2 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.1689-3ubuntu1.3 | No fix listed |
| ubuntu/vim(Ubuntu:16.04) | = 2:7.4.1689-3ubuntu1.4 | No fix listed |
References
- Debian Security Tracker CVE-2017-17087 vendor-advisory
- openwall.com issue-tracking mailing-list
- security.cucumberlinux.com issue-tracking third-party-advisory
- github.com patch third-party-advisory
- groups.google.com issue-tracking mailing-list third-party-advisory
- [debian-lts-announce] 20190803 [SECURITY] [DLA 1871-1] vim security update mailing-list third-party-advisory
- [debian-lts-announce] 20220110 [SECURITY] [DLA 2876-1] vim security update mailing-list third-party-advisory
- USN-4582-1 third-party-advisory vendor-advisory
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking