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.
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 | 2:8.0.1401-1 | — |
| Debian 13 | vim | 2:8.0.1401-1 | — |
| Debian 12 | vim | 2:8.0.1401-1 | — |
| Debian 9 | vim | 2:8.0.0197-4+deb9u4 | DLA-2876-1 |
| Debian 8 | vim | 2:7.4.488-7+deb8u4 | DLA-1871-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | vim | 2:8.1.2269-1ubuntu5.4 | USN-5147-1 |
| Ubuntu 18.04 LTS | vim | 2:8.0.1453-1ubuntu1.4 | USN-5147-1, USN-4582-1 |
| Ubuntu 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.5 | USN-4582-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.5+esm3 | USN-5147-1 |
| Ubuntu Pro 14.04 LTS | vim | 2:7.4.052-1ubuntu3.1+esm4 | USN-5147-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES 15 SP3 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES 15 SP2 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES 15 SP1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES 15 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
Show 21 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP3 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP2 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 15 SP2 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES for SAP 15 SP1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES for SAP 15 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLES for SAP 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLE Micro 5.2 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLE Micro 5.1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLE HPC 15 SP2 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLE HPC 15 SP1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SLE HPC 15 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SUSE OpenStack Cloud Crowbar 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SUSE OpenStack Cloud 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SUSE Manager Server 4.1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SUSE Manager Retail Branch Server 4.1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SUSE Manager Proxy 4.1 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SUSE Enterprise Storage 7 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| SUSE Enterprise Storage 6 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
| openSUSE Leap 15.3 | vim | 8.2.5038-150000.5.21.1 | SUSE-SU-2022:2102-1 |
Advisories 6
- USN-5147-1 vim vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-1871-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2876-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4582-1 vim vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2022:2102-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4619-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
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
- [debian-lts-announce] 20190803 [SECURITY] [DLA 1871-1] vim security update mailing-list
- USN-4582-1 vendor-advisory
- [debian-lts-announce] 20220110 [SECURITY] [DLA 2876-1] vim security update mailing-list