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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | 8.0 | affected | |
| debian | 9.0 | affected | |
| ubuntu | 16.04 | affected | |
| ubuntu | 18.04 | affected | |
| debian | bookworm | fixed | 2:8.0.1401-1 |
| debian | bullseye | fixed | 2:8.0.1401-1 |
| debian | forky | fixed | 2:8.0.1401-1 |
| debian | sid | fixed | 2:8.0.1401-1 |
| debian | trixie | fixed | 2:8.0.1401-1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| vim | vim | {"endExcluding":"8.0.1263"} | 8.0.1263 |
References
- http://openwall.com/lists/oss-security/2017/11/27/2
- http://security.cucumberlinux.com/security/details.php?id=166
- https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8
- https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ
- https://lists.debian.org/debian-lts-announce/2019/08/msg00003.html
- https://lists.debian.org/debian-lts-announce/2022/01/msg00003.html
- https://usn.ubuntu.com/4582-1/
- https://www.suse.com/security/cve/CVE-2017-17087.html
- https://security-tracker.debian.org/tracker/CVE-2017-17087
CWEs
CWE-668
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.