Amazon Linux 2 Security Advisory: ALAS2-2026-3368
Advisory Released Date: 2026-06-22
Advisory Updated Date: 2026-06-22
FAQs regarding Amazon Linux ALAS/CVE Severity
Vim is an open source, command line text editor. Prior to version 9.2.0495, a Vimscript code injection vulnerability exists in s:NetrwBookHistSave() in the netrw plugin (runtime/pack/dist/opt/netrw/autoload/netrw.vim) when serializing browsed directory paths to the history file ~/.vim/.netrwhist. A directory name derived from the filesystem is interpolated into a single-quoted Vimscript string literal without escaping embedded single quotes, allowing a crafted directory name to break out of the string context and execute arbitrary Vimscript, including shell commands via system() and :!, the next time the history file is sourced. This issue has been patched in version 9.2.0495. (CVE-2026-47162)
Vim is an open source, command line text editor. Prior to version 9.2.0496, a code injection vulnerability exists in s:stepmatch() in the cucumber filetype plugin (runtime/ftplugin/cucumber.vim) on Vim builds with +ruby support. Step-definition patterns read from .rb files under the repository's features/*/ or stories/*/ directories are embedded into a Ruby Kernel.eval argument without sufficient escaping, allowing a crafted pattern in an attacker-controlled repository to execute arbitrary Ruby (and through it arbitrary shell commands) when the user invokes a step-jump mapping ([d, ]d). This issue has been patched in version 9.2.0496. (CVE-2026-47167)
Vim is an open source, command line text editor. Prior to version 9.2.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561. (CVE-2026-52858)
Vim is an open source, command line text editor. Prior to version 9.2.0597, Vim's Python omni-completion executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. Python evaluates function default values, parameter annotations, and class base expressions at definition time, so a hostile buffer can execute attacker-controlled Python expressions during omni-completion. The existing g:pythoncomplete_allow_import mitigation (GHSA-52mc-rq6p-rc7c) does not cover this path, because the attacker-controlled code is not a harvested import/from statement. This issue has been patched in version 9.2.0597. (CVE-2026-52860)
Affected Packages:
vim
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update vim or yum update --advisory ALAS2-2026-3368 to update your system.
aarch64:
vim-common-9.0.2153-1.amzn2.0.7.aarch64
vim-minimal-9.0.2153-1.amzn2.0.7.aarch64
vim-enhanced-9.0.2153-1.amzn2.0.7.aarch64
vim-X11-9.0.2153-1.amzn2.0.7.aarch64
xxd-9.0.2153-1.amzn2.0.7.aarch64
vim-debuginfo-9.0.2153-1.amzn2.0.7.aarch64
i686:
vim-common-9.0.2153-1.amzn2.0.7.i686
vim-minimal-9.0.2153-1.amzn2.0.7.i686
vim-enhanced-9.0.2153-1.amzn2.0.7.i686
vim-X11-9.0.2153-1.amzn2.0.7.i686
xxd-9.0.2153-1.amzn2.0.7.i686
vim-debuginfo-9.0.2153-1.amzn2.0.7.i686
noarch:
vim-filesystem-9.0.2153-1.amzn2.0.7.noarch
vim-data-9.0.2153-1.amzn2.0.7.noarch
src:
vim-9.0.2153-1.amzn2.0.7.src
x86_64:
vim-common-9.0.2153-1.amzn2.0.7.x86_64
vim-minimal-9.0.2153-1.amzn2.0.7.x86_64
vim-enhanced-9.0.2153-1.amzn2.0.7.x86_64
vim-X11-9.0.2153-1.amzn2.0.7.x86_64
xxd-9.0.2153-1.amzn2.0.7.x86_64
vim-debuginfo-9.0.2153-1.amzn2.0.7.x86_64