PT-2017-4218 · Vim+4 · Vim+4
Ken Takata
·
Published
2017-11-04
·
Updated
2022-12-27
·
CVE-2017-17087
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Vim versions prior to 8.0.1263
Description
The issue is related to the fileio.c component in Vim, which sets the group ownership of a .swp file to the editor's primary group. This can allow local users to obtain sensitive information by leveraging an applicable group membership. For example, if a file like /etc/shadow is owned by root:shadow with mode 0640, the corresponding .swp file /etc/.shadow.swp might be owned by root:users with the same mode, potentially exposing sensitive data.
Recommendations
For versions prior to 8.0.1263, update to version 8.0.1263 or later to resolve the issue. As a temporary workaround, consider restricting access to sensitive files and their corresponding .swp files to minimize the risk of exploitation.
Exploit
Fix
Exposure of Resource to Wrong Sphere
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Linuxmint
Suse
Ubuntu
Vim