CVE Vulnerabilities

CVE-2026-47162

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Published: Jun 11, 2026 | Modified: Sep 18, 2026
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.3 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Affected Software

NameVendorStart VersionEnd Version
VimVim*9.2.0495 (excluding)
Red Hat Enterprise Linux 10RedHatvim-2:9.1.083-9.el10_2.7*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatvim-2:9.1.083-5.el10_0.4*
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONRedHatvim-2:7.4.629-5.el6_10.4*
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRedHatvim-2:7.4.629-8.el7_9.2*
Red Hat Enterprise Linux 8RedHatvim-2:8.0.1763-27.el8_10*
Red Hat Enterprise Linux 8RedHatvim-2:8.0.1763-27.el8_10*
Red Hat Enterprise Linux 9RedHatvim-2:8.2.2637-26.el9_8.10*
Red Hat Enterprise Linux 9RedHatvim-2:8.2.2637-26.el9_8.10*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatvim-2:8.2.2637-20.el9_2.3*
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRedHatvim-2:8.2.2637-20.el9_4.4*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatvim-2:8.2.2637-22.el9_6.4*
Red Hat OpenShift Container Platform 4.22RedHatopenshift/ose-rhel-coreos-9:4.22.9.8.202608130832-0*
Red Hat AI Inference Server 3.2RedHatrhaiis/model-opt-cuda-rhel9:1790621714*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-cuda-rhel9:1790621718*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-rocm-rhel9:1790621713*
Red Hat Hardened ImagesRedHatvim-main-9.2.967-1.1.hum1*
Red Hat Insights proxy 1.5RedHatinsights-proxy/insights-proxy-container-rhel9:1786433656*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-rocm-rhel9:1790276886*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-tpu-rhel9:1790276884*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-cpu-rhel9:1790277045*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-spyre-rhel9:1790276889*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-cuda-rhel9:1790276974*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-tpu-rhel9:1790703497*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-rocm-rhel9:1790703506*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-cpu-rhel9:1790703590*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-spyre-rhel9:1790703568*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-cuda-rhel9:1790703586*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-rocm-rhel9:1790703494*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cpu-rhel9:1790703615*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-tpu-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-rocm-6.4-rhel9:1790703524*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-13.0-rhel9:1790703601*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-rocm-7.0-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-12.9-rhel9:1790703608*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-spyre-rhel9:1790703579*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-neuron-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-13.0-rhel9:1791231820*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-12.9-rhel9:1791232257*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-neuron-rhel9:1790703542*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-tpu-rhel9:1790703539*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-gaudi-rhel9:1790703553*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cpu-rhel9:1790703631*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-spyre-rhel9:1790703597*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cuda-13.0-rhel9:1790703641*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cuda-12.9-rhel9:1790703630*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-rocm-7.1-rhel9:1790703541*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-rocm-6.4-rhel9:1790703545*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-gaudi-rhel9:1790703552*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-cpu-rhel9:1790703656*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-neuron-rhel9:1790703557*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-rubin-rhel9:1790703707*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-cuda-13.0-rhel9:1790703645*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-tpu-rhel9:1790703554*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-rocm-7.14-rhel9:1790703554*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-spyre-rhel9:1790703630*
Red Hat OpenShift AI 3.5RedHatrhai/base-image-cuda-12.9-rhel9:1790703706*
Red Hat Update Infrastructure 5RedHatrhui5/cds-kubernetes-tp-rhel9:1787241211*
Red Hat Update Infrastructure 5RedHatrhui5/installer-tp-rhel9:1787135742*
Red Hat Update Infrastructure 5RedHatrhui5/rhua-tp-rhel9:1787241260*
VimUbuntuesm-infra-legacy/trusty*
VimUbuntuesm-infra-legacy/xenial*
VimUbuntuesm-infra/bionic*
VimUbuntuesm-infra/focal*
VimUbuntujammy*
VimUbuntunoble*
VimUbuntuquesting*
VimUbunturesolute*
VimUbuntuupstream*

Potential Mitigations

References