Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-47162 Details

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-140Improper Neutralization of Delimitersredhat-SADP
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')[email protected]
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]

Affected Products

ProductVersions
vim vim
< 9.2.0495

CPE

  • cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

16 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-47162
NVD Published Date:
Jun 11, 2026
NVD Last Modified:
Sep 18, 2026
Source:
[email protected]
CVE-2026-47162 Details - Not Deferred