# CVE-2026-59856: Vim: Arbitrary Code Execution via PHP Omni-Completion

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 9.2.0736 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-09 · Modified: 2026-07-14
- Aliases: ALPINE-CVE-2026-59856, UBUNTU-CVE-2026-59856, DEBIAN-CVE-2026-59856
- Record: https://cvemate.com/vulnerability/CVE-2026-59856 · JSON: https://cvemate.com/vulnerability/CVE-2026-59856/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v4.0, CVE.org) 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
- EPSS: 0.236%, percentile 15.652%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine vim (Alpine Linux): \< 9.2.0854-r0 \| \< 9.2.0747-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.1230-2+deb13u1 \| \< 2:9.2.0782-1
- ubuntu vim (Ubuntu): \< 2:8.2.3995-1ubuntu2.34 \| \< 2:9.1.0016-1ubuntu7.18 \| \< 2:9.1.2141-1ubuntu4.7
- vim vim: \< 9.2.0736

## References

- <https://github.com/vim/vim/security/advisories/GHSA-fh26-8f79-wj97>
- <https://github.com/vim/vim/commit/43afc581a37a35762dd0ef292f038b9dc5680a24>
- <https://security.alpinelinux.org/vuln/CVE-2026-59856>
- <https://ubuntu.com/security/CVE-2026-59856>
- <https://www.cve.org/CVERecord?id=CVE-2026-59856>
- <https://ubuntu.com/security/notices/USN-8541-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59856>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59856>

---

Data as of 2026-12-05T04:47:06.514Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
