CVE-2026-47162 json
Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name
published 2026-06-11 4 mo ago modified 2026-09-18 51 d ago also EUVD-2026-36281
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Red Hat Red Hat Enterprise Linux 10 2:9.1.083-9.el10_2.7
- Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 2:9.1.083-5.el10_0.4
- Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support 2:7.4.629-8.el7_9.2
- Red Hat Red Hat Enterprise Linux 8 2:8.0.1763-27.el8_10
- Red Hat Red Hat Enterprise Linux 9 2:8.2.2637-26.el9_8.10
- Red Hat Red Hat OpenShift Container Platform 4.22 4.22.9.8.202608130832-0
- Red Hat Red Hat Insights proxy 1.5 1786433656
- Red Hat Red Hat Update Infrastructure 5 1787135742, 1787241211, 1787241260
- vim Debian 13 2:9.1.1230-2+deb13u1
- vim Debian 14 2:9.2.0524-1
debian advisories DEBIAN-CVE-2026-47162
- vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.32
- vim Ubuntu 24.04 LTS 2:9.1.0016-1ubuntu7.16
- vim Ubuntu 25.10 2:9.1.0967-1ubuntu6.7
- vim Ubuntu 26.04 LTS 2:9.1.2141-1ubuntu4.5
- vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm29
- vim Ubuntu Pro 16.04 LTS 2:7.4.1689-3ubuntu1.5+esm35
- vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm20
- vim Ubuntu Pro 20.04 LTS 2:8.1.2269-1ubuntu5.32+esm8
ubuntu advisories UBUNTU-CVE-2026-47162
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- vim hummingbird 1 9.2.967-1.1.hum1
- xxd hummingbird 1 9.2.967-1.1.hum1
- vim-X11 hummingbird 1 9.2.967-1.1.hum1
- vim-data hummingbird 1 9.2.967-1.1.hum1
- vim-common hummingbird 1 9.2.967-1.1.hum1
- vim-minimal hummingbird 1 9.2.967-1.1.hum1
- vim-enhanced hummingbird 1 9.2.967-1.1.hum1
- vim-filesystem hummingbird 1 9.2.967-1.1.hum1
red hat advisories RHSA-2026:72465RHSA-2026:72466RHSA-2026:70818RHSA-2026:69128RHSA-2026:68711RHSA-2026:57614
- xxd AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-X11 AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-data AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-common AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-minimal AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-enhanced AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-filesystem AlmaLinux 10 2:9.1.083-9.el10_2.7
- vim-X11 AlmaLinux 8 2:8.0.1763-27.el8_10
almalinux advisories ALSA-2026:38509ALSA-2026:38510ALSA-2026:38511
- vim Rocky Linux 10 2:9.1.083-9.el10_2.7
- vim Rocky Linux 9 2:8.2.2637-26.el9_8.10
- vim Rocky Linux 8 2:8.0.1763-27.el8_10
rocky linux advisories RLSA-2026:38509RLSA-2026:38511RLSA-2026:38510
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-47162 updated cvss 7.3
vim: Vim: Arbitrary Code Execution via crafted directory names
-
Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9affected: no fix available
-
Red Hat AI Inference Server 3.2 rhaiis/vllm-cuda-rhel9 1790621718, rhaiis/vllm-rocm-rhel9 1790621713, rhaiis/model-opt-cuda-rhel9 1790621714fixed: vendor fix RHSA-2026:73859
-
Red Hat AI Inference Server 3.5 rhaii/vllm-cpu-rhel9 1791473614, rhaii/vllm-cuda-rhel9 1791473631, rhaii/vllm-rocm-rhel9 1791425869, rhaii/vllm-gaudi-rhel9 1791427182, rhaii/vllm-spyre-rhel9 1791818357, rhaii/model-opt-cuda-rhel9 1791803821fixed: vendor fix RHSA-2026:82066
-
Red Hat Enterprise Linux AI 3.5 rhelai3/bootc-cuda-rhel9 1793135861, rhelai3/bootc-rocm-rhel9 1793135863, rhelai3/bootc-aws-cuda-rhel9 1793194817, rhelai3/bootc-gcp-cuda-rhel9 1793194815, rhelai3/disk-image-cuda-rhel9 1793206758, rhelai3/bootc-azure-cuda-rhel9 1793194815, +1 morefixed: vendor fix RHSA-2026:92452
-
Red Hat Enterprise Linux AppStream (v. 8) vim-common 8.0.1763-27.el8_10fixed: vendor fix RHSA-2026:38510
-
Red Hat Enterprise Linux AppStream (v. 9) vim-common 8.2.2637-26.el9_8.10fixed: vendor fix RHSA-2026:38511
-
Red Hat Enterprise Linux AppStream (v. 10) vim-common 9.1.083-9.el10_2.7fixed: vendor fix RHSA-2026:38509
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) vim-X11 8.2.2637-20.el9_2.3, vim-common 8.2.2637-20.el9_2.3, vim-enhanced 8.2.2637-20.el9_2.3fixed: vendor fix RHSA-2026:72466
show 22 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) vim-X11 8.2.2637-20.el9_4.4, vim-common 8.2.2637-20.el9_4.4, vim-enhanced 8.2.2637-20.el9_4.4fixed: vendor fix RHSA-2026:72465
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) vim-common 9.1.083-5.el10_0.4fixed: vendor fix RHSA-2026:55431
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) vim-X11 8.2.2637-22.el9_6.4, vim-common 8.2.2637-22.el9_6.4, vim-enhanced 8.2.2637-22.el9_6.4fixed: vendor fix RHSA-2026:70818
-
Red Hat Enterprise Linux BaseOS (v. 8) vim 8.0.1763-27.el8_10fixed: vendor fix RHSA-2026:38510
-
Red Hat Enterprise Linux BaseOS (v. 9) vim 8.2.2637-26.el9_8.10fixed: vendor fix RHSA-2026:38511
-
Red Hat Enterprise Linux BaseOS (v. 10) vim 9.1.083-9.el10_2.7fixed: vendor fix RHSA-2026:38509
-
Red Hat Enterprise Linux BaseOS E4S (v.9.2) vim 8.2.2637-20.el9_2.3, vim-minimal 8.2.2637-20.el9_2.3, vim-filesystem 8.2.2637-20.el9_2.3fixed: vendor fix RHSA-2026:72466
-
Red Hat Enterprise Linux BaseOS E4S (v.9.4) vim 8.2.2637-20.el9_4.4, vim-minimal 8.2.2637-20.el9_4.4, vim-filesystem 8.2.2637-20.el9_4.4fixed: vendor fix RHSA-2026:72465
-
Red Hat Enterprise Linux BaseOS EUS (v. 10.0) vim 9.1.083-5.el10_0.4fixed: vendor fix RHSA-2026:55431
-
Red Hat Enterprise Linux BaseOS EUS (v.9.6) vim 8.2.2637-22.el9_6.4, vim-minimal 8.2.2637-22.el9_6.4, vim-filesystem 8.2.2637-22.el9_6.4fixed: vendor fix RHSA-2026:70818
-
Red Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION) vim 7.4.629-5.el6_10.4, vim-X11 7.4.629-5.el6_10.4, vim-common 7.4.629-5.el6_10.4, vim-enhanced 7.4.629-5.el6_10.4fixed: vendor fix RHSA-2026:69128
-
Red Hat Enterprise Linux Server (v. 7 ELS) vim 7.4.629-8.el7_9.2, vim-X11 7.4.629-8.el7_9.2, vim-common 7.4.629-8.el7_9.2, vim-minimal 7.4.629-8.el7_9.2, vim-enhanced 7.4.629-8.el7_9.2fixed: vendor fix RHSA-2026:68711
-
Red Hat Hardened Images vim 9.2.967-1.1.hum1, xxd 9.2.967-1.1.hum1, vim-X11 9.2.967-1.1.hum1, vim-data 9.2.967-1.1.hum1, vim-common 9.2.967-1.1.hum1, vim-minimal 9.2.967-1.1.hum1, +3 morefixed: vendor fix RHSA-2026:57614
-
Red Hat Insights proxy 1.5 insights-proxy/insights-proxy-container-rhel9 1786433656fixed: vendor fix RHSA-2026:53371
-
Red Hat OpenShift AI 3.0 rhai/base-image-cpu-rhel9 1790277045, rhai/base-image-tpu-rhel9 1790276884, rhai/base-image-cuda-rhel9 1790276974, rhai/base-image-rocm-rhel9 1790276886, rhai/base-image-spyre-rhel9 1790276889fixed: vendor fix RHSA-2026:73960
-
Red Hat OpenShift AI 3.2 rhai/base-image-cpu-rhel9 1790703590, rhai/base-image-tpu-rhel9 1790703497, rhai/base-image-cuda-rhel9 1790703586, rhai/base-image-rocm-rhel9 1790703494, rhai/base-image-rocm-rhel9 1790703506, rhai/base-image-spyre-rhel9 1790703568fixed: vendor fix RHSA-2026:74460
-
Red Hat OpenShift AI 3.3 rhai/base-image-cpu-rhel9 1790703615, rhai/base-image-tpu-rhel9 1790703516, rhai/base-image-spyre-rhel9 1790703579, rhai/base-image-neuron-rhel9 1790703516, rhai/base-image-rocm-6.4-rhel9 1790703524, rhai/base-image-rocm-7.0-rhel9 1790703516, +4 morefixed: vendor fix RHSA-2026:74359
-
Red Hat OpenShift AI 3.4 rhai/base-image-cpu-rhel9 1790703631, rhai/base-image-tpu-rhel9 1790703539, rhai/base-image-gaudi-rhel9 1790703553, rhai/base-image-spyre-rhel9 1790703597, rhai/base-image-neuron-rhel9 1790703542, rhai/base-image-rocm-6.4-rhel9 1790703545, +3 morefixed: vendor fix RHSA-2026:74679
-
Red Hat OpenShift AI 3.5 rhai/base-image-cpu-rhel9 1790703656, rhai/base-image-tpu-rhel9 1790703554, rhai/base-image-gaudi-rhel9 1790703552, rhai/base-image-rubin-rhel9 1790703707, rhai/base-image-spyre-rhel9 1790703630, rhai/base-image-neuron-rhel9 1790703557, +3 morefixed: vendor fix RHSA-2026:75652
-
Red Hat OpenShift Container Platform 4.22 rhcos 4.22.9.8.202608130832fixed: vendor fix RHSA-2026:54769
-
Red Hat Update Infrastructure 5 rhui5/rhua-tp-rhel9 1787241260, rhui5/installer-tp-rhel9 1787135742, rhui5/cds-kubernetes-tp-rhel9 1787241211fixed: vendor fix RHSA-2026:58981
-
Red Hat Enterprise Linux AppStream (v. 8) vim-X11 8.0.1763-27.el8_10, vim-enhanced 8.0.1763-27.el8_10, vim-filesystem 8.0.1763-27.el8_10 Red Hat Enterprise Linux AppStream (v. 9) vim-X11 8.2.2637-26.el9_8.10, vim-enhanced 8.2.2637-26.el9_8.10 Red Hat Enterprise Linux AppStream (v. 10) xxd 9.1.083-9.el10_2.7, vim-X11 9.1.083-9.el10_2.7, vim-enhanced 9.1.083-9.el10_2.7 Red Hat Enterprise Linux AppStream EUS (v. 10.0) xxd 9.1.083-5.el10_0.4, vim-X11 9.1.083-5.el10_0.4, vim-enhanced 9.1.083-5.el10_0.4 Red Hat Enterprise Linux BaseOS (v. 8) vim-minimal 8.0.1763-27.el8_10 Red Hat Enterprise Linux BaseOS (v. 9) vim-minimal 8.2.2637-26.el9_8.10, vim-filesystem 8.2.2637-26.el9_8.10not affected: vulnerable code not present
+5 more productsfewer
Red Hat Enterprise Linux BaseOS (v. 10) vim-data 9.1.083-9.el10_2.7, vim-minimal 9.1.083-9.el10_2.7, vim-filesystem 9.1.083-9.el10_2.7 Red Hat Enterprise Linux BaseOS EUS (v. 10.0) vim-data 9.1.083-5.el10_0.4, vim-minimal 9.1.083-5.el10_0.4, vim-filesystem 9.1.083-5.el10_0.4 Red Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION) vim-minimal 7.4.629-5.el6_10.4, vim-filesystem 7.4.629-5.el6_10.4 Red Hat Enterprise Linux Server (v. 7 ELS) vim-filesystem 7.4.629-8.el7_9.2 Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8
1 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| CISA ADP | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 7.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected products
- vim vim
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat OpenShift Container Platform 4.22
- Red Hat Red Hat Insights proxy 1.5
- Red Hat Red Hat Update Infrastructure 5
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Hardened Images
- Red Hat Red Hat OpenShift Container Platform 4
Classification
References
-
github.com
/vim/vim/commit/f08ab2f4d7d2947c8dd6c179ae08ee6146a2694b
patch
-
access.redhat.com
/errata/RHSA-2026:68711
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:54769
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:55431
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:38509
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:38510
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:38511
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:53371
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:58981
vendor-advisory
-
github.com
/vim/vim/security/advisories/GHSA-crm5-rh6j-2c7c
vendor-advisory
-
github.com
/vim/vim/releases/tag/v9.2.0495
product
-
access.redhat.com
/security/cve/CVE-2026-47162
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2487964
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2026/cve-2026-47162.json
Sources
- CVE List CVE-2026-47162
- NVD CVE-2026-47162
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.