CVE-2026-59856
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.
Weakness
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-07-13 |
Timeline
- 2026-07-09Published by the CNA22:39 UTC
- 2026-07-13CISA SSVC decision recorded4 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| vim vim | before 9.2.0736fixed in 9.2.0736 | 9.2.0736 |
References
- https://github.com/vim/vim/commit/43afc581a37a35762dd0ef292f038b9dc5680a24
- https://github.com/vim/vim/security/advisories/GHSA-fh26-8f79-wj97
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-59856'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-59856'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-59856'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-59856'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).