Skip to content
OpenAdvisories
High ALAS2023-2026-1993 3 CVEs

Important: vim security update (Amazon Linux 2023)

Published Aug 3, 2026 · Updated Aug 4, 2026

Summary

Package updates are available for Amazon Linux 2023 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-59857: Vim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spell_soundfold_sal() in src/spell.c translates a word through a spell file's SAL sound-folding rules into a caller-owned result buffer, but its result writes are guarded with reslen < MAXWLEN, allowing reslen to reach MAXWLEN before res[reslen] = NUL writes one byte past the end of the MAXWLEN-element stack buffer. A boundary-length word passed to soundfold(), or reached via sound-based spell suggestion while a SAL-based spell language is active under a non-multibyte 8-bit encoding, can corrupt the eval_soundfold() stack frame and crash the editor. This issue is fixed in version 9.2.0725. 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 12

ReleasePackageFixed in
Amazon Linux · 2023 vim-common 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-data 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-debuginfo 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-debugsource 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-default-editor 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-enhanced 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-enhanced-debuginfo 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-filesystem 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-minimal 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 vim-minimal-debuginfo 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 xxd 2:9.2.780-1.amzn2023.0.1
Amazon Linux · 2023 xxd-debuginfo 2:9.2.780-1.amzn2023.0.1

Vulnerabilities 3

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

  • Medium 5.6

    Vim: Out-of-bounds Write in SAL Soundfolding

    Vim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spell_soundfold_sal() in src/spell.c translates a word through a spell file's SAL sound-folding rules into a caller-owned result buffer, but its result writes are gu…

References

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