REDHAT-BUG-2498867: Medium severity vim vulnerability
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 winexecute() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.2.0736
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2498867?
The severity of REDHAT-BUG-2498867 is classified as medium with a score of 4.
How do I fix REDHAT-BUG-2498867?
To fix REDHAT-BUG-2498867, upgrade to Vim version 9.2.0736 or later.
What is the risk associated with REDHAT-BUG-2498867?
The risk associated with REDHAT-BUG-2498867 is rated at 19.
What is affected by REDHAT-BUG-2498867?
REDHAT-BUG-2498867 affects the Vim text editor, specifically the PHP omni-completion script.
What issue does REDHAT-BUG-2498867 describe?
REDHAT-BUG-2498867 describes an issue where an interpolated class or trait name in a search pattern is run without escaping.