Skip to content
OpenAdvisories
High ALAS2-2026-3829 2 CVEs

Important: vim security update (Amazon Linux 2)

Published Aug 3, 2026 · Updated Aug 4, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-59858: Vim is an open source, command line text editor. Prior to 9.2.0735, the C omni-completion script in runtime/autoload/ccomplete.vim interpolates the typeref: or typename: extension field of a tags entry, without escaping, into a :vimgrep pattern that is run through :execute. Because :vimgrep honors the bar as a command separator, a crafted tag field can close the search pattern and append an arbitrary Ex command; opening a hostile .c file whose project tags file contains such an entry and invoking C omni-completion runs that command as the editing user. This issue is fixed in version 9.2.0735. CVE-2026-59856: 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.

Fixed packages 8

ReleasePackageFixed in
Amazon Linux · 2 vim-common 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-data 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-debuginfo 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-enhanced 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-filesystem 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-minimal 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 vim-X11 2:9.0.2153-1.amzn2.0.9
Amazon Linux · 2 xxd 2:9.0.2153-1.amzn2.0.9

Vulnerabilities 2

  • High 8.4

    Vim: Arbitrary Code Execution via PHP Omni-Completion

    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 wi…

  • High 8.4

    Vim: Arbitrary Code Execution via C Omni-Completion

    Vim is an open source, command line text editor. Prior to 9.2.0735, the C omni-completion script in runtime/autoload/ccomplete.vim interpolates the typeref: or typename: extension field of a tags entry, without escaping, into a :vimgrep pattern that is run th…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-59856.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-59858.html