Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | vim | No fix yet | — |
| Debian 13 | vim | No fix yet | — |
| Debian 12 | vim | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | vim | 8.2.3408-1.2 | openSUSE-SU-2024:11497-1 |
Advisories 1
- openSUSE-SU-2024:11497-1 gvim-8.2.3408-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026