CVE & CISA-KEV Catalog

CVE-2026-47162

HIGH
8.8
CVSS v3
NVD

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.

How to fix

Remediation Available
vimDebian
Fixed in:2:9.2.0524-1CVE-2026-47162
vimUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-athenaUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-athena-py2Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
vim-commonUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-gnomeUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
vim-gnome-py2Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
vim-gtkUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
vim-gtk-py2Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
vim-gtk3Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-gtk3-py2Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
vim-gui-commonUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-lesstifUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
vim-motifUbuntu
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-noxUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-nox-py2Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
vim-runtimeUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
vim-tinyUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm29USN-8451-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm35USN-8451-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
xxdUbuntu
Fixed in:2:8.0.1453-1ubuntu1.13+esm20USN-8451-1
Fixed in:2:8.1.2269-1ubuntu5.32+esm8USN-8451-1
Fixed in:2:8.2.3995-1ubuntu2.32USN-8451-1
Fixed in:2:9.1.0016-1ubuntu7.16USN-8451-1
Fixed in:2:9.1.0967-1ubuntu6.7USN-8451-1
VimWindows application
Affected:9.2.0495Fixed in:9.2.0495Bram Moolenaar et al.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

0.22%probability of exploitation in 30 days
12thpercentile

Low risk: more likely to be exploited than 12% of all known CVEs.

References

Related Vulnerabilities

Other CWE-74 (Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2251Critical9.8100%KEVFix
CVE-2023-22527Critical9.8100%KEV + RansomFix
CVE-2019-2725Critical9.8100%KEV + RansomFix
CVE-2022-46169Critical9.8100%KEVFix
CVE-2022-35914Critical9.8100%KEV-
CVE-2019-17558High7.599%KEVFix
Embed a live status badge for CVE-2026-47162
CVE-2026-47162 severity badge

Markdown

[![CVE-2026-47162](https://tridentstack.com/cve/badge/CVE-2026-47162.svg)](https://tridentstack.com/cve/CVE-2026-47162)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-47162"><img src="https://tridentstack.com/cve/badge/CVE-2026-47162.svg" alt="CVE-2026-47162"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-07-15.