CVE-2026-59856

Publication date 10 July 2026

Last updated 16 July 2026


Ubuntu priority

Cvss 3 Severity Score

7.8 · High

Score breakdown

Description

Vim is an open source, command line text editor. Prior to 9.2.0736, the PHP omni-completion script in runtime/autoload/phpcomplete.vim interpolates a class or trait name, taken from the contents of the edited buffer, into a search() pattern that is run via win_execute() without escaping. A name containing a single quote can terminate the search() string argument early, and because the bar is honored as an Ex command separator, the remainder of the name is run as Ex commands; via the :! command this allows arbitrary operating-system command execution when a victim opens a crafted PHP file and invokes omni-completion. This issue is fixed in version 9.2.0736.

Read the notes from the security team

Status

Package Ubuntu Release Status
vim 26.04 LTS resolute
Fixed 2:9.1.2141-1ubuntu4.7
24.04 LTS noble
Fixed 2:9.1.0016-1ubuntu7.18
22.04 LTS jammy
Fixed 2:8.2.3995-1ubuntu2.34
20.04 LTS focal
Not affected
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Notes


kkernick

Earlier versions executed search directly, rather than running it via win_execute.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
vim

Severity score breakdown

CVSS version:

Base score 8.4 · High

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Base score 7.8 · High

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H


Access our resources on patching vulnerabilities