Public Date:
1718308: CVE-2019-12735 vim/neovim: ':source!' command allows arbitrary command execution via modelines
It was found that the `:source!` command was not restricted by the sandbox mode. If modeline was explicitly enabled, opening a specially crafted text file in vim could result in arbitrary command execution.

Find out more about CVE-2019-12735 from the MITRE CVE dictionary dictionary and NIST NVD.

CVSS v3 metrics

CVSS3 Base Score 6.3
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality Low
Integrity Impact Low
Availability Impact Low

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux Extended Update Support 7.5 (vim) RHSA-2019:1793 2019-07-16
Red Hat Enterprise Linux 8 (vim) RHSA-2019:1619 2019-06-27
Red Hat Enterprise Linux Extended Update Support 7.4 (vim) RHSA-2019:1947 2019-07-30
Red Hat Enterprise Linux 7 (vim) RHSA-2019:1619 2019-06-27
Red Hat Enterprise Linux 6 (vim) RHSA-2019:1774 2019-07-15

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 5 vim Out of support scope
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.


The vulnerability can be triggered only if `modeline` is enabled. You can check whether `modeline` is enabled within vim via the command `:set modeline?`
It can be turned off explicitly by adding `set nomodeline` in a vimrc file.

Last Modified