USN-8541-1: Vim vulnerabilities

Publication date

14 July 2026

Overview

Several security issues were fixed in Vim.


Packages

  • vim - Vi IMproved - enhanced vi editor

Details

Hirohito Higashi discovered that Vim incorrectly escaped class or trait
names when performing PHP omni-completion. An attacker could possibly
use this issue to trick a user into opening a specially crafted PHP
file and executing arbitrary commands. This issue only affected Ubuntu
22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-59856)

Hirohito Higashi discovered that Vim incorrectly handled sound-folding
of certain words when using a spell file. An attacker could possibly
use this issue to cause Vim to crash, resulting in a denial of service.
(CVE-2026-59857)

It was discovered that Vim incorrectly escaped certain tags file fields
when performing C omni-completion. An attacker could possibly use this
issue to trick a user into opening a specially crafted file and
executing arbitrary commands. (

Hirohito Higashi discovered that Vim incorrectly escaped class or trait
names when performing PHP omni-completion. An attacker could possibly
use this issue to trick a user into opening a specially crafted PHP
file and executing arbitrary commands. This issue only affected Ubuntu
22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-59856)

Hirohito Higashi discovered that Vim incorrectly handled sound-folding
of certain words when using a spell file. An attacker could possibly
use this issue to cause Vim to crash, resulting in a denial of service.
(CVE-2026-59857)

It was discovered that Vim incorrectly escaped certain tags file fields
when performing C omni-completion. An attacker could possibly use this
issue to trick a user into opening a specially crafted file and
executing arbitrary commands. (CVE-2026-59858)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
26.04 LTS resolute vim –  2:9.1.2141-1ubuntu4.7
vim-common –  2:9.1.2141-1ubuntu4.7
vim-gtk3 –  2:9.1.2141-1ubuntu4.7
vim-gui-common –  2:9.1.2141-1ubuntu4.7
vim-motif –  2:9.1.2141-1ubuntu4.7
vim-nox –  2:9.1.2141-1ubuntu4.7
vim-runtime –  2:9.1.2141-1ubuntu4.7
vim-tiny –  2:9.1.2141-1ubuntu4.7
xxd –  2:9.1.2141-1ubuntu4.7
24.04 LTS noble vim –  2:9.1.0016-1ubuntu7.18
vim-athena –  2:9.1.0016-1ubuntu7.18
vim-common –  2:9.1.0016-1ubuntu7.18
vim-gtk3 –  2:9.1.0016-1ubuntu7.18
vim-gui-common –  2:9.1.0016-1ubuntu7.18
vim-motif –  2:9.1.0016-1ubuntu7.18
vim-nox –  2:9.1.0016-1ubuntu7.18
vim-runtime –  2:9.1.0016-1ubuntu7.18
vim-tiny –  2:9.1.0016-1ubuntu7.18
xxd –  2:9.1.0016-1ubuntu7.18
22.04 LTS jammy vim –  2:8.2.3995-1ubuntu2.34
vim-athena –  2:8.2.3995-1ubuntu2.34
vim-common –  2:8.2.3995-1ubuntu2.34
vim-gtk –  2:8.2.3995-1ubuntu2.34
vim-gtk3 –  2:8.2.3995-1ubuntu2.34
vim-gui-common –  2:8.2.3995-1ubuntu2.34
vim-nox –  2:8.2.3995-1ubuntu2.34
vim-runtime –  2:8.2.3995-1ubuntu2.34
vim-tiny –  2:8.2.3995-1ubuntu2.34
xxd –  2:8.2.3995-1ubuntu2.34
20.04 LTS focal vim –  2:8.1.2269-1ubuntu5.32+esm10  
vim-athena –  2:8.1.2269-1ubuntu5.32+esm10  
vim-common –  2:8.1.2269-1ubuntu5.32+esm10  
vim-gtk –  2:8.1.2269-1ubuntu5.32+esm10  
vim-gtk3 –  2:8.1.2269-1ubuntu5.32+esm10  
vim-gui-common –  2:8.1.2269-1ubuntu5.32+esm10  
vim-nox –  2:8.1.2269-1ubuntu5.32+esm10  
vim-runtime –  2:8.1.2269-1ubuntu5.32+esm10  
vim-tiny –  2:8.1.2269-1ubuntu5.32+esm10  
xxd –  2:8.1.2269-1ubuntu5.32+esm10  
18.04 LTS bionic vim –  2:8.0.1453-1ubuntu1.13+esm22  
vim-athena –  2:8.0.1453-1ubuntu1.13+esm22  
vim-common –  2:8.0.1453-1ubuntu1.13+esm22  
vim-gnome –  2:8.0.1453-1ubuntu1.13+esm22  
vim-gtk –  2:8.0.1453-1ubuntu1.13+esm22  
vim-gtk3 –  2:8.0.1453-1ubuntu1.13+esm22  
vim-gui-common –  2:8.0.1453-1ubuntu1.13+esm22  
vim-nox –  2:8.0.1453-1ubuntu1.13+esm22  
vim-runtime –  2:8.0.1453-1ubuntu1.13+esm22  
vim-tiny –  2:8.0.1453-1ubuntu1.13+esm22  
xxd –  2:8.0.1453-1ubuntu1.13+esm22  
16.04 LTS xenial vim –  2:7.4.1689-3ubuntu1.5+esm37  
vim-athena –  2:7.4.1689-3ubuntu1.5+esm37  
vim-athena-py2 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-common –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gnome –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gnome-py2 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gtk –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gtk-py2 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gtk3 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gtk3-py2 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-gui-common –  2:7.4.1689-3ubuntu1.5+esm37  
vim-nox –  2:7.4.1689-3ubuntu1.5+esm37  
vim-nox-py2 –  2:7.4.1689-3ubuntu1.5+esm37  
vim-runtime –  2:7.4.1689-3ubuntu1.5+esm37  
vim-tiny –  2:7.4.1689-3ubuntu1.5+esm37  
14.04 LTS trusty vim –  2:7.4.052-1ubuntu3.1+esm31  
vim-athena –  2:7.4.052-1ubuntu3.1+esm31  
vim-common –  2:7.4.052-1ubuntu3.1+esm31  
vim-gnome –  2:7.4.052-1ubuntu3.1+esm31  
vim-gtk –  2:7.4.052-1ubuntu3.1+esm31  
vim-gui-common –  2:7.4.052-1ubuntu3.1+esm31  
vim-lesstif –  2:7.4.052-1ubuntu3.1+esm31  
vim-nox –  2:7.4.052-1ubuntu3.1+esm31  
vim-runtime –  2:7.4.052-1ubuntu3.1+esm31  
vim-tiny –  2:7.4.052-1ubuntu3.1+esm31  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›