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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.2.0736"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59856",
"id": "CVE-2026-59856",
"imported": "2026-12-02T14:11:18.592Z",
"modified": "2026-07-14T05:16:19.477Z",
"published": "2026-07-09T23:17:06.420Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-59856"
},
{
"affected": {
"vim:vim": [
"< 9.2.0736"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-42753",
"id": "EUVD-2026-42753",
"imported": "2026-12-02T14:11:19.992Z",
"modified": "2026-07-14T03:55:39Z",
"published": "2026-07-09T22:39:01Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-42753"
}
]
}