Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
AI Analysis
Technical Summary
This vulnerability allows Vimscript code injection via the netrw plugin's NetrwBookHistSave() function by using a specially crafted directory name. The issue is identified as CWE-74, which involves improper neutralization of code elements leading to code injection. The affected product is Vim version 3.0. There is no CVSS score or detailed vendor advisory available, and no patch or fix information is provided at this time.
Potential Impact
Successful exploitation could allow an attacker to inject and execute arbitrary Vimscript code within the context of the affected Vim process. This could lead to unauthorized actions or compromise of the user's environment where Vim is run. However, no known exploits are currently reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when opening directories with untrusted or suspicious names in Vim version 3.0, especially involving the netrw plugin.
Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name
Description
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability allows Vimscript code injection via the netrw plugin's NetrwBookHistSave() function by using a specially crafted directory name. The issue is identified as CWE-74, which involves improper neutralization of code elements leading to code injection. The affected product is Vim version 3.0. There is no CVSS score or detailed vendor advisory available, and no patch or fix information is provided at this time.
Potential Impact
Successful exploitation could allow an attacker to inject and execute arbitrary Vimscript code within the context of the affected Vim process. This could lead to unauthorized actions or compromise of the user's environment where Vim is run. However, no known exploits are currently reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when opening directories with untrusted or suspicious names in Vim version 3.0, especially involving the netrw plugin.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_vex
- Csaf Version
- 2.0
- Publisher
- Microsoft Security Response Center
- Advisory Id
- msrc_CVE-2026-47162
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a2d2f90e617e2d834b6ed6a
Added to database: 06/13/2026, 10:23:12 UTC
Last enriched: 06/13/2026, 10:26:25 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 100
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.