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

VectorAV: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

Weakness Enumeration

Related Identifiers

ALT-PU-2018-1878
BDU:2022-05951
CVE-2017-17087
DLA-1871-1
DLA-2876-1
OPENSUSE-SU-2022_2102-1
SUSE-SU-2022:2102-1
SUSE-SU-2022:4619-1
SUSE-SU-2022_2102-1
USN-4582-1
USN-5147-1

Affected Products

Alt Linux
Linuxmint
Suse
Ubuntu
Vim