Bug 1508786 (CVE-2017-1000382) - CVE-2017-1000382 vim: Ignores umask when creating a swap file
Summary: CVE-2017-1000382 vim: Ignores umask when creating a swap file
Alias: CVE-2017-1000382
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1508787
Blocks: 1508790
TreeView+ depends on / blocked
Reported: 2017-11-02 08:54 UTC by Andrej Nemec
Modified: 2021-03-09 14:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was found that vim applies the opened file read permissions to the swap file, overriding the process' umask. An attacker might search for vim swap files that were not deleted properly, in order to retrieve sensitive data.
Clone Of:
Last Closed: 2017-12-20 10:36:12 UTC

Attachments (Terms of Use)

Description Andrej Nemec 2017-11-02 08:54:02 UTC
VIM version 8.0.1187 (and other versions most likely) ignores umask when creating a swap file ("[ORIGINAL_FILENAME].swp") resulting in files that may be world readable or otherwise accessible in ways not intended by the user running the vi binary.



Comment 1 Andrej Nemec 2017-11-02 08:54:29 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 1508787]

Comment 3 Cedric Buissart 2017-12-20 10:36:22 UTC

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Note You need to log in before you can comment on or make changes to this bug.