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
This high-severity CVE scores 8.8 under NVD CVSS v3. EPSS exploit probability: 0.3%, top 82% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(medium)
- EG Risk
- 40(Track)EG Risk 40/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity88% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 18%
- KEV
- Not listed
Published
June 11, 2026
Last Modified
September 4, 2026
Advisory Details (2)
Auto-updated Jun 12, 2026Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name affects Vim < 9.2.0495 · Advisory · vim/vim · GitHub
https://github.com/vim/vim/security/advisories/GHSA-crm5-rh6j-2c7ccommit f08ab2f4d7d2 (vim/vim)
Fix landed in vim/vim commit f08ab2f4d7d2 — awaiting tagged release
https://github.com/vim/vim/commit/f08ab2f4d7d2947c8dd6c179ae08ee6146a2694bVendor Advisories for CVE-2026-47162(8)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:58981Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat Update Infrastructure 5.3 Technology Preview security update
- RHSA-2026:54769Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.22.10 bug fix and security update
- RHSA-2026:55431Red Hat Product SecurityHigh
Red Hat Security Advisory: vim security update
- RHSA-2026:53371Red Hat Product SecurityHigh
Red Hat Security Advisory: Insights proxy Container Image
- RHSA-2026:38511Red Hat Product SecurityHigh
Red Hat Security Advisory: vim security update
- RHSA-2026:38510Red Hat Product SecurityHigh
Red Hat Security Advisory: vim security update
- RHSA-2026:38509Red Hat Product SecurityHigh
Red Hat Security Advisory: vim security update
- CVE-2026-47162Microsoft Security Response Center (MSRC)High
Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name
Patch Availability(8)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | xxd (2:9.1.0967-1ubuntu6.7) @ questing | 2026-09-14 | ubuntu |
| redhat | rhui5/rhua-tp-rhel9:1787241260 | 2026-08-24 | redhat |
| redhat | rhcos-4.22.9.8.202608130832-0 | 2026-08-18 | redhat |
| redhat | vim-2:9.1.083-5.el10_0.4 | 2026-08-17 | redhat |
| redhat | insights-proxy/insights-proxy-container-rhel9:1786433656 | 2026-08-11 | redhat |
| redhat | vim-2:9.1.083-9.el10_2.7 | 2026-07-13 | redhat |
| redhat | vim-2:8.2.2637-26.el9_8.10 | 2026-07-13 | redhat |
| redhat | vim-2:8.0.1763-27.el8_10 | 2026-07-13 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(4 across 4 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| vim | 2:8.2.2434-3 ... 2:9.2.0858-1 (63 versions) | — | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| vim | 2:9.0.1378-2 ... 2:9.2.0858-1 (45 versions) | — | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| vim | 2:9.1.1230-2 ... 2:9.2.0858-1 (19 versions) | — | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| vim | 2:9.1.1230-2 ... 2:9.2.0461-1 (16 versions) | 2:9.2.0524-1 | — |
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 8× in last 7d / 56× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 250 total refreshes for this CVE.
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-14 04:09 UTCEG score recompute
- 2026-09-14 04:09 UTCVendor advisory
- 2026-09-13 16:47 UTCEPSS rescore
- 2026-09-12 15:01 UTCEPSS rescore
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 09:37 UTCEPSS rescore
- 2026-09-10 09:34 UTCEPSS rescore
- 2026-09-08 22:00 UTCEPSS rescore
- 2026-09-07 16:01 UTCEPSS rescore
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-04 13:29 UTCVendor advisory
- 2026-09-04 12:21 UTCEG score recompute
- 2026-09-04 12:21 UTCVendor advisory
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-02 14:12 UTCEPSS rescore
- 2026-09-01 13:54 UTCEPSS rescore
- 2026-09-01 13:44 UTCVendor advisory
- 2026-09-01 12:19 UTCEG score recompute
- 2026-09-01 12:19 UTCVendor advisory
- 2026-08-31 00:03 UTCEG score recompute
- 2026-08-31 00:03 UTCVendor advisory
- 2026-08-30 19:17 UTCEPSS rescore
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-28 21:41 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 13:23 UTCVendor advisory
- 2026-08-25 12:19 UTCVendor advisory
- 2026-08-25 02:33 UTCEG score recompute
- 2026-08-25 02:33 UTCVendor advisory
- 2026-08-24 13:29 UTCVendor advisory
- 2026-08-24 12:21 UTCEG score recompute
- 2026-08-24 12:20 UTCVendor advisory
- 2026-08-23 23:44 UTCVendor advisory
- 2026-08-23 10:41 UTCEG score recompute
- 2026-08-23 10:41 UTCVendor advisory
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 01:17 UTCEG score recompute
- 2026-08-22 01:17 UTCVendor advisory
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 12:13 UTCEG score recompute
- 2026-08-21 12:13 UTCVendor advisory
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 21:54 UTCVendor advisory
- 2026-08-20 08:50 UTCEG score recompute
- 2026-08-20 08:50 UTCVendor advisory
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-19 12:26 UTCVendor advisory
- 2026-08-19 12:10 UTCEG score recompute
- 2026-08-19 12:10 UTCVendor advisory
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 12:25 UTCVendor advisory
- 2026-08-17 12:12 UTCVendor advisory
- 2026-08-17 04:31 UTCVendor advisory
- 2026-08-16 15:28 UTCEG score recompute
- 2026-08-16 15:28 UTCVendor advisory
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 02:25 UTCEG score recompute
- 2026-08-16 02:25 UTCVendor advisory
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 13:23 UTCEG score recompute
- 2026-08-15 13:23 UTCVendor advisory
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-15 00:20 UTCVendor advisory
- 2026-08-14 11:18 UTCVendor advisory
- 2026-08-13 22:14 UTCEG score recompute
- 2026-08-13 22:14 UTCVendor advisory
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 04:46 UTCVendor advisory
- 2026-08-12 15:43 UTCEG score recompute
- 2026-08-12 15:43 UTCVendor advisory
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-12 02:25 UTCEG score recompute
- 2026-08-12 02:25 UTCVendor advisory
- 2026-08-11 13:23 UTCVendor advisory
- 2026-08-11 12:23 UTCVendor advisory
- 2026-08-11 02:32 UTCEG score recompute
- 2026-08-11 02:32 UTCVendor advisory
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-10 13:29 UTCVendor advisory
- 2026-08-10 12:25 UTCVendor advisory
- 2026-08-10 04:19 UTCVendor advisory
- 2026-08-09 15:17 UTCEG score recompute
- 2026-08-09 15:17 UTCVendor advisory
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 02:14 UTCEG score recompute
- 2026-08-09 02:14 UTCVendor advisory
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-08 13:12 UTCVendor advisory
- 2026-08-08 00:09 UTCEG score recompute
- 2026-08-08 00:09 UTCVendor advisory
- 2026-08-07 11:07 UTCVendor advisory
- 2026-08-06 22:04 UTCEG score recompute
- 2026-08-06 22:04 UTCVendor advisory
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-06 09:01 UTCVendor advisory
- 2026-08-05 19:58 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-47162?
When was CVE-2026-47162 disclosed?
Is CVE-2026-47162 actively exploited?
What is the CVSS score of CVE-2026-47162?
How do I remediate CVE-2026-47162?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-47162
Is Your Infrastructure Affected by CVE-2026-47162?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.