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.2%, top 88% 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)
- EPSS
- 12.4%
- KEV
- Not listed
Published
June 11, 2026
Last Modified
July 15, 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(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | xxd (2:8.0.1453-1ubuntu1.13+esm20) @ bionic | 2026-07-16 | ubuntu |
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.
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 10× in last 7d / 75× 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 112 total refreshes for this CVE.
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:24 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-17 06:20 UTCVendor advisory
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-16 11:27 UTCVendor advisory
- 2026-07-15 21:34 UTCVendor advisory
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 07:58 UTCVendor advisory
- 2026-07-15 02:26 UTCNVD updateCVSS v3 → 8.8
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 01:21 UTCMITRE cvelistV5CVSS v3 → 7.3
- 2026-07-14 15:35 UTCVendor advisory
- 2026-07-14 02:32 UTCVendor advisory
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 13:30 UTCVendor advisory
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 22:34 UTCVendor advisory
- 2026-07-12 09:31 UTCVendor advisory
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 20:27 UTCVendor advisory
- 2026-07-11 08:27 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-11 07:24 UTCVendor advisory
- 2026-07-10 17:38 UTCVendor advisory
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 13:29 UTCVendor advisory
- 2026-07-08 23:55 UTCVendor advisory
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-08 10:52 UTCVendor advisory
- 2026-07-07 21:43 UTCVendor advisory
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-07 01:44 UTCVendor advisory
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:35 UTCVendor advisory
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 13:32 UTCVendor advisory
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 00:28 UTCVendor advisory
- 2026-07-04 11:21 UTCVendor advisory
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 20:47 UTCVendor advisory
- 2026-07-03 07:42 UTCVendor advisory
- 2026-07-02 17:56 UTCVendor advisory
- 2026-07-02 04:48 UTCVendor advisory
- 2026-07-01 15:43 UTCVendor advisory
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 02:38 UTCVendor advisory
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 13:35 UTCVendor advisory
- 2026-06-29 21:54 UTCVendor advisory
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 08:51 UTCVendor advisory
- 2026-06-28 19:48 UTCVendor advisory
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 06:45 UTCVendor advisory
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 17:43 UTCVendor advisory
- 2026-06-27 04:39 UTCVendor advisory
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 15:36 UTCVendor advisory
- 2026-06-26 02:31 UTCVendor advisory
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:28 UTCVendor advisory
- 2026-06-25 00:24 UTCVendor advisory
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 11:21 UTCVendor advisory
- 2026-06-23 22:18 UTCVendor advisory
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 08:23 UTCVendor advisory
- 2026-06-22 18:09 UTCVendor advisory
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 04:16 UTCVendor advisory
- 2026-06-21 15:10 UTCVendor advisory
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 02:04 UTCVendor advisory
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-20 13:01 UTCVendor advisory
- 2026-06-19 23:57 UTCVendor advisory
- 2026-06-19 19:26 UTCEPSS rescore
- 2026-06-19 19:26 UTCEPSS rescore
- 2026-06-19 10:54 UTCVendor advisory
- 2026-06-18 21:46 UTCVendor advisory
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 08:43 UTCVendor advisory
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:53 UTCEPSS rescore
- 2026-06-16 17:32 UTCVendor advisory
- 2026-06-16 04:28 UTCVendor advisory
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownubuntu · msrc
Same CWE
10 shownCWE-74 · CWE-94
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
Explore the affected products and dependency analysis for 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.