CVE-2019-12735

Impact:
Important
Public Date:
2019-06-05
CWE:
CWE-94
Bugzilla:
1718308: CVE-2019-12735 vim/neovim: the :source! command allows arbitrary command execution via the modeline
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

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

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

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 8 vim Affected
Red Hat Enterprise Linux 7 vim Affected
Red Hat Enterprise Linux 6 vim Out of support scope
Red Hat Enterprise Linux 5 vim Out of support scope

Mitigation

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