GHSA-fh26-8f79-wj97 — vim
Fix: vim/vim@43afc58GHSA-fh26-8f79-wj97 is a Code Injection vulnerability. A fix is available — see the affected versions and patch details below.
Vim: Arbitrary Code Execution via PHP Omni-Completion
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-fh26-8f79-wj97.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
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.
Affected Products
vimvimDetection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for GHSA-fh26-8f79-wj97, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat Product Security has rated this vulnerability as having a Moderate impact. While successful exploitation allows for arbitrary operating-system command execution when a user opens a crafted PHP file and triggers omni-completion, this feature is disabled by default in Red Hat products. The requirement for a…
Users should exercise caution when opening untrusted PHP files and avoid invoking omni-completion on them. To prevent exploitation, the PHP omni-completion script can be disabled by moving or renaming `phpcomplete.vim`. For example, execute `mv /usr/share/vim/vim*/autoload/phpcomplete.vim /usr/share/vim/vim*/autoload/phpcomplete.vim.bak`. This action will disable PHP omni-completion functionality. A restart of Vim is necessary for this change to take effect.Source: Red Hat security advisory for GHSA-fh26-8f79-wj97 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 10 | vim-2:9.1.083-9.el10_2.12 | RHSA-2026:48650 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | vim-2:9.1.083-5.el10_0.4 | RHSA-2026:55431 |
| Red Hat Enterprise Linux 9 | vim-2:8.2.2637-26.el9_8.13 | RHSA-2026:47982 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | vim-2:8.2.2637-20.el9_2.3 | RHSA-2026:72466 |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | vim-2:8.2.2637-20.el9_4.4 | RHSA-2026:72465 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | vim-2:8.2.2637-22.el9_6.4 | RHSA-2026:70818 |
| Red Hat OpenShift Container Platform 4.22 | rhcos-4.22.9.8.202608130832-0 | RHSA-2026:54769 |
| Red Hat AI Inference Server 3.2 | rhaiis/model-opt-cuda-rhel9:1790621714 | RHSA-2026:73859 |
Frequently Asked Questions
Is GHSA-fh26-8f79-wj97 in your dependencies?
Find it across , including transitive dependencies.