Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-47162

published high CVSS 4.0 · 7.3

Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name

Published
11 Jun 2026, 18:32:14 UTC
Updated
18 Sep 2026, 12:04:49 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
vim — vim< 9.2.0495 Affected Not stated GitHub_M
Red Hat Enterprise Linux 10 vim2:9.1.083-9.el10_2.7 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — vimRed Hat Enterprise Linux 10.0 Extended Update Support · 2:9.1.083-5.el10_0.4 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — vimRed Hat Enterprise Linux 7 Extended Lifecycle Support · 2:7.4.629-8.el7_9.2 and later · Other versions: affected Unaffected Not stated redhat-SADP
Amazon Linux AL2 Release evaluationALAS2-2026-3368 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1862 Fixed Not stated Amazon Linux assessment
Debian trixie vim Advisory build 2:9.1.1230-2+deb13u1 DSA-6600-1
Red Hat Enterprise Linux RHEL-10 vimsrc Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Show 108 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux 8 vim2:8.0.1763-27.el8_10 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat Enterprise Linux 9 vim2:8.2.2637-26.el9_8.10 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhcosRed Hat OpenShift Container Platform 4.22 · 4.22.9.8.202608130832-0 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — insights-proxy/insights-proxy-container-rhel9Red Hat Insights proxy 1.5 · 1786433656 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhui5/cds-kubernetes-tp-rhel9Red Hat Update Infrastructure 5 · 1787241211 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhui5/installer-tp-rhel9Red Hat Update Infrastructure 5 · 1787135742 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhui5/rhua-tp-rhel9Red Hat Update Infrastructure 5 · 1787241260 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat Enterprise Linux 6 vim Affected Not stated redhat-SADP
Red Hat — vimRed Hat Hardened Images Affected Not stated redhat-SADP
Red Hat — openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 Unaffected Not required redhat-SADP
Ubuntu bionic vim Advisory build 2:8.0.1453-1ubuntu1.13+esm20 USN-8451-1
AlmaLinux 10 vim-data Advisory build 2:9.1.083-9.el10_2.7 ALSA-2026:38509
Oracle Linux 10 vim-X11aarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Red Hat Enterprise Linux RHEL-10 vimsrc Advisory build 2:9.1.083-9.el10_2.7 RHSA-2026:38509
Red Hat Enterprise Linux RHEL-6 vimsrc Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-7 vimsrc Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-8 vimsrc Advisory build 2:8.0.1763-27.el8_10 RHSA-2026:38510
Red Hat Enterprise Linux RHEL-9 vimsrc Advisory build 2:8.2.2637-20.el9_2.3 RHSA-2026:72466
Red Hat Enterprise Linux RHEL-9 vimsrc Advisory build 2:8.2.2637-20.el9_4.4 RHSA-2026:72465
Red Hat Enterprise Linux RHEL-9 vimsrc Advisory build 2:8.2.2637-22.el9_6.4 RHSA-2026:70818
Red Hat Enterprise Linux RHEL-9 vimsrc Advisory build 2:8.2.2637-26.el9_8.10 RHSA-2026:38511
Ubuntu focal vim Advisory build 2:8.1.2269-1ubuntu5.32+esm8 USN-8451-1
Ubuntu jammy vim Advisory build 2:8.2.3995-1ubuntu2.32 USN-8451-1
Ubuntu noble vim Advisory build 2:9.1.0016-1ubuntu7.16 USN-8451-1
Ubuntu questing vim Advisory build 2:9.1.0967-1ubuntu6.7 USN-8451-1
Ubuntu resolute vim Advisory build 2:9.1.2141-1ubuntu4.5 USN-8451-1
Ubuntu trusty vim Advisory build 2:7.4.052-1ubuntu3.1+esm29 USN-8451-1
Ubuntu xenial vim Advisory build 2:7.4.1689-3ubuntu1.5+esm35 USN-8451-1
AlmaLinux 10 vim-filesystem Advisory build 2:9.1.083-9.el10_2.7 ALSA-2026:38509
AlmaLinux 8 vim-X11 Advisory build 2:8.0.1763-27.el8_10 ALSA-2026:38510
AlmaLinux 8 vim-common Advisory build 2:8.0.1763-27.el8_10 ALSA-2026:38510
AlmaLinux 8 vim-enhanced Advisory build 2:8.0.1763-27.el8_10 ALSA-2026:38510
AlmaLinux 8 vim-filesystem Advisory build 2:8.0.1763-27.el8_10 ALSA-2026:38510
AlmaLinux 8 vim-minimal Advisory build 2:8.0.1763-27.el8_10 ALSA-2026:38510
AlmaLinux 9 vim-X11 Advisory build 2:8.2.2637-26.el9_8.10 ALSA-2026:38511
AlmaLinux 9 vim-common Advisory build 2:8.2.2637-26.el9_8.10 ALSA-2026:38511
AlmaLinux 9 vim-enhanced Advisory build 2:8.2.2637-26.el9_8.10 ALSA-2026:38511
AlmaLinux 9 vim-filesystem Advisory build 2:8.2.2637-26.el9_8.10 ALSA-2026:38511
AlmaLinux 9 vim-minimal Advisory build 2:8.2.2637-26.el9_8.10 ALSA-2026:38511
Oracle Linux 10 vim-X11x86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-commonaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-commonx86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-dataaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-datax86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-enhancedaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-enhancedx86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-filesystemaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-filesystemx86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-minimalaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 vim-minimalx86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 xxdaarch64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 10 xxdx86_64 Advisory build 2:9.1.083-9.0.1.el10_2.7 ELSA-2026-38509
Oracle Linux 8 vim-X11aarch64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-X11x86_64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-commonaarch64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-commonx86_64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-enhancedaarch64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-enhancedx86_64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-filesystemaarch64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-filesystemx86_64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-minimalaarch64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 8 vim-minimalx86_64 Advisory build 2:8.0.1763-27.0.1.el8_10 ELSA-2026-38510
Oracle Linux 9 vim-X11aarch64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-X11x86_64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-commonaarch64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-commonx86_64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-enhancedaarch64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-enhancedx86_64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-filesystemaarch64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-filesystemx86_64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-minimalaarch64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Oracle Linux 9 vim-minimalx86_64 Advisory build 2:8.2.2637-26.0.1.el9_8.10 ELSA-2026-38511
Red Hat Enterprise Linux RHEL-10 vim-X11aarch64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-X11ppc64le Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-X11s390x Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-X11x86_64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-commonaarch64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-commonaarch64 Advisory build 2:9.1.083-9.el10_2.7 RHSA-2026:38509
Red Hat Enterprise Linux RHEL-10 vim-commonppc64le Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-commonppc64le Advisory build 2:9.1.083-9.el10_2.7 RHSA-2026:38509
Red Hat Enterprise Linux RHEL-10 vim-commons390x Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-commons390x Advisory build 2:9.1.083-9.el10_2.7 RHSA-2026:38509
Red Hat Enterprise Linux RHEL-10 vim-commonx86_64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-commonx86_64 Advisory build 2:9.1.083-9.el10_2.7 RHSA-2026:38509
Red Hat Enterprise Linux RHEL-10 vim-enhancedaarch64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-enhancedppc64le Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-enhanceds390x Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-10 vim-enhancedx86_64 Advisory build 2:9.1.083-5.el10_0.4 RHSA-2026:55431
Red Hat Enterprise Linux RHEL-6 vim-X11i686 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-X11s390x Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-X11x86_64 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-commoni686 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-commons390x Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-commonx86_64 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-enhancedi686 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-enhanceds390x Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-enhancedx86_64 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-minimali686 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-minimals390x Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-6 vim-minimalx86_64 Advisory build 2:7.4.629-5.el6_10.4 RHSA-2026:69128
Red Hat Enterprise Linux RHEL-7 vim-X11ppc64 Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-X11ppc64le Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-X11s390x Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-X11x86_64 Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-commonppc64 Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-commonppc64le Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-commons390x Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711
Red Hat Enterprise Linux RHEL-7 vim-commonx86_64 Advisory build 2:7.4.629-8.el7_9.2 RHSA-2026:68711

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · GitHub_M · cna

en · redhat-SADP · adp

A flaw was found in Vim, an open-source text editor. This vulnerability, located in the netrw plugin, involves a code injection issue when the editor processes directory paths. A malicious directory name, if crafted by an attacker, could bypass security measures and allow for the execution of unauthorized commands. This could lead to arbitrary code execution on the affected system.

Vendor advisories explicitly linked to this CVE.

29

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
7.3 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.3 high redhat-SADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
vim vim < 9.2.0495 (affected) GitHub_M · cna
Red Hat Red Hat Enterprise Linux 10 2:9.1.083-9.el10_2.7 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 2:9.1.083-5.el10_0.4 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support 2:7.4.629-8.el7_9.2 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 2:8.0.1763-27.el8_10 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 9 2:8.2.2637-26.el9_8.10 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift Container Platform 4.22 4.22.9.8.202608130832-0 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Insights proxy 1.5 1786433656 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Update Infrastructure 5 1787241211 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Update Infrastructure 5 1787135742 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Update Infrastructure 5 1787241260 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 6 Default: affected redhat-SADP · adp
Red Hat Red Hat Hardened Images Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift Container Platform 4 Default: unaffected redhat-SADP · adp

Weaknesses

3
  • CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (GitHub_M · cna)
  • CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') (GitHub_M · cna)
  • CWE-140 Improper Neutralization of Delimiters (redhat-SADP · adp)

References

14

Provider assertions

3

GitHub_M · cna

Vim: Vimscript Code Injection in netrw NetrwBookHistSave() via crafted directory name

redhat-SADP · adp

vim: Vim: Arbitrary Code Execution via crafted directory names

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
3c714305365776518476b547559d82b11ee29fb99e5574058e7eba3be17ae454
Ingested
23 Sep 2026, 09:16:58 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected