Skip to content
OpenAdvisories
High ALAS2023-2026-1584 13 CVEs

Important: vim security update (Amazon Linux 2023)

Published Apr 13, 2026 · Updated Apr 13, 2026

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-34982: A modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The complete, guitabtooltip and printheader options are missing the P_MLE flag, allowing a modeline to be executed. Additionally, the mapset() function lacks a check_secure() call, allowing it to be abused from sandboxed expressions. An attacker who can deliver a crafted file to a victim achieves arbitrary command execution with the privileges of the user running Vim. CVE-2026-34714: Vim before 9.2.0272 allows code execution that happens immediately upo ... NOTE: https://github.com/vim/vim/security/advisories/GHSA-2gmj-rpqf-pxvh NOTE: Fixed by: https://github.com/vim/vim/commit/664701eb7576edb7c7c7d9f2d600815ec1f43459 (v9.2.0272) CVE-2026-33412: Command injection via newline in glob() NOTE: https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c CVE-2026-32249: Vim is an open source, command line text editor. From 9.1.0011 to before 9.2.0137, Vim's NFA regex compiler, when encountering a collection containing a combining character as the endpoint of a character range (e.g. [0-0\u05bb]), incorrectly emits the composing bytes of that character as separate NFA states. This corrupts the NFA postfix stack, resulting in NFA_START_COLL having a NULL out1 pointer. When nfa_max_width() subsequently traverses the compiled NFA to estimate match width for the look-behind assertion, it dereferences state->out1->out without a NULL check, causing a segmentation fault. This vulnerability is fixed in 9.2.0137. CVE-2026-28420: Vim is an open source, command line text editor. Prior to version 9.2.0076, a heap-based buffer overflow WRITE and an out-of-bounds READ exist in Vim's terminal emulator when processing maximum combining characters from Unicode supplementary planes. Version 9.2.0076 fixes the issue. CVE-2026-28419: Vim is an open source, command line text editor. Prior to version 9.2.0075, a heap-based buffer underflow exists in Vim's Emacs-style tags file parsing logic. When processing a malformed tags file where a delimiter appears at the start of a line, Vim attempts to read memory immediately preceding the allocated buffer. Version 9.2.0075 fixes the issue. CVE-2026-28418: Vim is an open source, command line text editor. Prior to version 9.2.0074, a heap-based buffer overflow out-of-bounds read exists in Vim's Emacs-style tags file parsing logic. When processing a malformed tags file, Vim can be tricked into reading up to 7 bytes beyond the allocated memory boundary. Version 9.2.0074 fixes the issue. CVE-2026-28417: Vim is an open source, command line text editor. Prior to version 9.2.0073, an OS command injection vulnerability exists in the `netrw` standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the `scp://` protocol handler), an attacker can execute arbitrary shell commands with the privileges of the Vim process. Version 9.2.0073 fixes the issue. CVE-2026-26269: Vim is an open source, command line text editor. Prior to 9.1.2148, a stack buffer overflow vulnerability exists in Vim's NetBeans integration when processing the specialKeys command, affecting Vim builds that enable and use the NetBeans feature. The Stack buffer overflow exists in special_keys() (in src/netbeans.c). The while (*tok) loop writes two bytes per iteration into a 64-byte stack buffer (keybuf) with no bounds check. A malicious NetBeans server can overflow keybuf with a single specialKeys command. The issue has been fixed as of Vim patch v9.1.2148. CVE-2026-25749: Vim is an open source, command line text editor. Prior to version 9.1.2132, a heap buffer overflow vulnerability exists in Vim's tag file resolution logic when processing the 'helpfile' option. The vulnerability is located in the get_tagfname() function in src/tag.c. When processing help file tags, Vim copies the user-controlled 'helpfile' option value into a fixed-size heap buffer of MAXPATHL + 1 bytes (typically 4097 bytes) using an unsafe STRCPY() operation without any bounds checking. This issue has been patched in version 9.1.2132. CVE-2025-9390: A security flaw has been discovered in vim up to 9.1.1615. Affected by this vulnerability is the function main of the file src/xxd/xxd.c of the component xxd. The manipulation results in buffer overflow. The attack requires a local approach. The exploit has been released to the public and may be exploited. Upgrading to version 9.1.1616 addresses this issue. The patch is identified as eeef7c77436a78cd27047b0f5fa6925d56de3cb0. It is recommended to upgrade the affected component. CVE-2025-9389: A vulnerability was identified in vim 9.1.0000. Affected is the function __memmove_avx_unaligned_erms of the file memmove-vec-unaligned-erms.S. The manipulation leads to memory corruption. The attack needs to be performed locally. The exploit is publicly available and might be used. Some users are not able to reproduce this. One of the users mentions that this appears not to be working, "when coloring is turned on". CVE-2025-22134: When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003

Fixed packages 12

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

Vulnerabilities 13

  • Critical 9.2

    Vim before 9.2.0272 allows code execution that happens immediately upon opening a crafted file in the default configura…

  • High 8.2

    Vim modeline bypass via various options affects Vim < 9.2.0276

    Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The `complete`, `guitabtooltip` and `printheader` options are missing the `P_M…

  • Medium 6.6

    Heap Overflow in Vim

    Vim is an open source, command line text editor. Prior to version 9.1.2132, a heap buffer overflow vulnerability exists in Vim's tag file resolution logic when processing the 'helpfile' option. The vulnerability is located in the get_tagfname() function in sr…

  • Medium 5.6

    Vim affected by Command injection via newline in glob()

    Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to…

  • Medium 5.4

    Vim has a Netbeans specialKeys Stack Buffer Overflow

    Vim is an open source, command line text editor. Prior to 9.1.2148, a stack buffer overflow vulnerability exists in Vim's NetBeans integration when processing the specialKeys command, affecting Vim builds that enable and use the NetBeans feature. The Stack bu…

  • Medium 5.3

    vim xxd xxd.c main buffer overflow

    A security flaw has been discovered in vim up to 9.1.1615. Affected by this vulnerability is the function main of the file src/xxd/xxd.c of the component xxd. The manipulation results in buffer overflow. The attack requires a local approach. The exploit has b…

  • Medium 5.3

    Vim has Heap-based Buffer Underflow in Emacs tags parsing

    Vim is an open source, command line text editor. Prior to version 9.2.0075, a heap-based buffer underflow exists in Vim's Emacs-style tags file parsing logic. When processing a malformed tags file where a delimiter appears at the start of a line, Vim attempts…

  • Medium 5.3

    NFA regex engine NULL pointer dereference affects Vim < 9.2.0137

    Vim is an open source, command line text editor. From 9.1.0011 to before 9.2.0137, Vim's NFA regex compiler, when encountering a collection containing a combining character as the endpoint of a character range (e.g. [0-0\u05bb]), incorrectly emits the composi…

  • Medium 4.4

    Vim has OS Command Injection in netrw

    Vim is an open source, command line text editor. Prior to version 9.2.0073, an OS command injection vulnerability exists in the `netrw` standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the `scp://` protocol handler), an …

  • Medium 4.4

    Vim has Heap-based Buffer Overflow in Emacs tags parsing

    Vim is an open source, command line text editor. Prior to version 9.2.0074, a heap-based buffer overflow out-of-bounds read exists in Vim's Emacs-style tags file parsing logic. When processing a malformed tags file, Vim can be tricked into reading up to 7 byt…

  • Medium 4.4

    Vim has Heap-based Buffer Overflow and OOB Read in :terminal

    Vim is an open source, command line text editor. Prior to version 9.2.0076, a heap-based buffer overflow WRITE and an out-of-bounds READ exist in Vim's terminal emulator when processing maximum combining characters from Unicode supplementary planes. Version 9…

  • Medium 4.2

    heap-buffer-overflow with visual mode in Vim < 9.1.1003

    When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.…

  • Low 3.3

    vim memmove-vec-unaligned-erms.S __memmove_avx_unaligned_erms memory corruption

    A vulnerability was identified in vim 9.1.0000. Affected is the function __memmove_avx_unaligned_erms of the file memmove-vec-unaligned-erms.S. The manipulation leads to memory corruption. The attack needs to be performed locally. The exploit is publicly avai…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-22134.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-9389.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-9390.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-25749.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-26269.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-28417.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-28418.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-28419.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-28420.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-32249.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33412.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-34714.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-34982.html