Vim is a greatly improved version of the good old UNIX editor Vi. Vim allows to redirect screen messages using the `:redir` ex command to register, variables and files. It also allows to show the contents of registers using the `:registers` or `:display` ex command. When redirecting the output of `:display` to a register, Vim will free the register content before storing the new content in the register. Now when redirecting the `:display` command to a register that is being displayed, Vim will free the content while shortly afterwards trying to access it, which leads to a use-after-free. Vim pre 9.1.1115 checks in the ex_display() function, that it does not try to redirect to a register while displaying this register at the same time. However this check is not complete, and so Vim does not check the `+` and `*` registers (which typically donate the X11/clipboard registers, and when a clipboard connection is not possible will fall back to use register 0 instead. In Patch 9.1.1115 Vim will therefore skip outputting to register zero when trying to redirect to the clipboard registers `*` or `+`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS Details
- CVSS 3.1 Base Score: 4.2
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade vim | Aug 8, 2025 | Feb 18, 2025 |
| Amazon Linux Ami 2 | — | Upgrade vim-minimalUpgrade xxdUpgrade vim-enhancedUpgrade vim-dataUpgrade vim-commonUpgrade vim-X11Upgrade vim-debuginfoUpgrade vim-filesystem | Apr 17, 2025 | Feb 18, 2025 |
| Amazon_linux_2023 | — | Upgrade xxd-debuginfoUpgrade vim-enhanced-debuginfoUpgrade vim-commonUpgrade vim-debuginfoUpgrade vim-dataUpgrade xxdUpgrade vim-minimalUpgrade vim-default-editorUpgrade vim-minimal-debuginfoUpgrade vim-debugsourceUpgrade vim-filesystemUpgrade vim-enhanced | Apr 15, 2025 | Feb 18, 2025 |
| Debian | — | No solution existsUpgrade vim | May 15, 2025 | Feb 18, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade vim-filesystemUpgrade vim-minimalUpgrade vim-enhancedUpgrade vim-common | Jul 11, 2025 | Feb 18, 2025 |
| Huawei Euleros 2_0_sp11 | — | Upgrade vim-commonUpgrade vim-filesystemUpgrade vim-enhancedUpgrade vim-minimal | Aug 13, 2025 | Jun 30, 2025 |
| Huawei Euleros 2_0_sp12 | — | Upgrade vim-enhancedUpgrade vim-commonUpgrade vim-minimalUpgrade vim-filesystem | Jul 21, 2025 | Feb 18, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade vim-commonUpgrade vim-filesystemUpgrade vim-enhancedUpgrade vim-minimal | Jul 1, 2025 | Feb 18, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 18, 2025 |
| Ubuntu | — | Upgrade vimUpgrade vim (Ubuntu Pro) | Apr 8, 2025 | Feb 18, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 2, 2025 | Feb 18, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub