CVE-2026-47162
highpriority · track · 35EPSS 0.003 · 20 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.4–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (19)
Products and version ranges known to be affected.
- Red Hat OpenShift Container Platformall versionscert_bundDEcpe:/a:redhat:openshift:container_platform
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1570vim: Mehrere Schwachstellen ermöglichen CodeausführungDeutsch2026-05-17csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in vim ausnutzen, um beliebigen Programmcode auszuführen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://github.com/vim/vimPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-47162cnnvd
- https://github.com/vim/vim/commit/f08ab2f4d7d2947c8dd6c179ae08ee6146a2694benisa_euvd
- https://github.com/vim/vim/releases/tag/v9.2.0495enisa_euvd
- https://github.com/vim/vim/security/advisories/GHSA-crm5-rh6j-2c7cenisa_euvd
- https://access.redhat.com/errata/RHSA-2026:38509nvd
- https://access.redhat.com/errata/RHSA-2026:38510nvd
- https://access.redhat.com/errata/RHSA-2026:38511nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan