Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-47162

37
FAUCET Score

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.

First published: Jun 11, 2026Last modified: Jun 11, 2026

Impacted Technologies

VendorProductVersion(s)CPE
< 9.2.0495CPE matchmatch criteria
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 4.0

7.3HIGH

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

Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
ACTIVE
VS Confidentiality
HIGH
VS Integrity
HIGH
VS Availability
HIGH
SS Confidentiality
NONE
SS Integrity
NONE
SS Availability
NONE
Exploit Maturity
NOT_DEFINED
CvssVersion
4.0

Exploit Intelligence

EPSS Score
0.22%
Probability of exploitation in next 30 days
EPSS Percentile
12.5%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0022 is in the 12th percentile among its peer group of 14,852 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.2 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (11)

github_advisorypatch availablevia nvd_reference
View patch
microsoftpatch availablevia msrc
Product: 21449-17084Fixed in: 9.2.0620-1
microsoftpatch availablevia msrc
Product: azl3 vim 9.2.0488-1 on Azure Linux 3.0Fixed in: 9.2.0620-1
ubuntupatch availablevia ubuntu_usn
Product: vim (jammy)Fixed in: 2:8.2.3995-1ubuntu2.32
ubuntupatch availablevia ubuntu_usn
Product: vim (noble)Fixed in: 2:9.1.0016-1ubuntu7.16
ubuntupatch availablevia ubuntu_usn
Product: vim (questing)Fixed in: 2:9.1.0967-1ubuntu6.7
ubuntupatch availablevia ubuntu_usn
Product: vim (resolute)Fixed in: 2:9.1.2141-1ubuntu4.5
ubuntupatch availablevia ubuntu_usn
Product: vim (trusty)Fixed in: 2:7.4.052-1ubuntu3.1+esm29
ubuntupatch availablevia ubuntu_usn
Product: vim (xenial)Fixed in: 2:7.4.1689-3ubuntu1.5+esm35
ubuntupatch availablevia ubuntu_usn
Product: vim (bionic)Fixed in: 2:8.0.1453-1ubuntu1.13+esm20
ubuntupatch availablevia ubuntu_usn
Product: vim (focal)Fixed in: 2:8.1.2269-1ubuntu5.32+esm8

Vendor Advisories (2)

ubuntuUSN-8451-1

Vim vulnerabilities

Jun 18, 2026
microsoft2026-Jun/CVE-2026-47162Important

Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name

Jun 9, 2026

References

access.redhat.com / security/cve/CVE-2026-47162
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-47162.json
github.com / vim/vim/commit/f08ab2f4d7d2947c8dd6c179ae08ee6146a2694b
Patch
github.com / vim/vim/releases/tag/v9.2.0495
Product
github.com / vim/vim/security/advisories/GHSA-crm5-rh6j-2c7c
Vendor Advisory