PatchSiren cyber security CVE debrief
CVE-2026-47162 vim CVE debrief
A code injection vulnerability exists in Vim's Netrw plugin, specifically in the `s:NetrwBookHistSave()` function. This function is used to save the history of browsed directories to the `~/.vim/.netrwhist` file. The vulnerability occurs when directory names are not properly escaped, allowing an attacker to inject arbitrary Vimscript code, including shell commands, by manipulating the directory name.
- Vendor
- vim
- Product
- Unknown
- CVSS
- HIGH 7.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-11
- Original CVE updated
- 2026-09-04
- Advisory published
- 2026-06-11
- Advisory updated
- 2026-09-04
Who should care
Users of Vim, particularly those who use the Netrw plugin, should be aware of this vulnerability. This vulnerability has a high CVSS score of 7.3, indicating a significant risk.
Technical summary
The vulnerability arises from the way directory names are serialized into the history file. Specifically, directory names are interpolated into a single-quoted Vimscript string literal without proper escaping of embedded single quotes. This allows a crafted directory name to break out of the string context and execute arbitrary Vimscript code.
Defensive priority
High
Recommended defensive actions
- Update Vim to version 9.2.0495 or later to patch the vulnerability.
- Use the official CVE record at [cve-org] for more information.
- Refer to the NVD detail page at [nvd] for additional information.
- See the vendor advisory at [ref-6] for more details.
Evidence notes
The CVE record and NVD detail page provide official information about the vulnerability. The vendor advisory and patch information are available on GitHub.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-47162 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-47162
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-47162 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-47162
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/vim/vim/commit/f08ab2f4d7d2947c8dd6c179ae08ee6146a2694b
[email protected] - Patch
-
Source reference
Unverified legacy reference
URL: https://github.com/vim/vim/releases/tag/v9.2.0495
[email protected] - Product
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/vim/vim/security/advisories/GHSA-crm5-rh6j-2c7c
[email protected] - Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.