CVE-2019-20807 Command injection in n/a

Medium 5.3 Published Updated

Attackers can bypass restricted mode in Vim to execute arbitrary OS commands via scripting interfaces, requiring restricted mode to be enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-20807?

CVE-2019-20807 is a medium-severity command injection vulnerability in Apple Mac Os X, published on 28 May 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In Vim before 8.1.0881, users can circumvent the rvim restricted mode and execute arbitrary OS commands via scripting interfaces (e.g., Python, Ruby, or Lua).

Weakness: CWE-78

Which versions are affected by CVE-2019-20807?

It affects 7 products.

Linux distribution packages (40)
vim-X11 Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-X11-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-common Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-common-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-debugsource Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-enhanced Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-enhanced-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-filesystem Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim-minimal-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions2:8.0.1763-15.el8
vim Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-X11-debuginfo Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-common-debuginfo Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-debuginfo Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-debugsource Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-enhanced-debuginfo Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-minimal Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim-minimal-debuginfo Red Hat:enterprise_linux:8::baseosAll versions2:8.0.1763-15.el8
vim Rocky Linux:8All versions2:8.0.1763-15.el8
vim SUSE:Enterprise Storage 5All versions7.4.326-17.6.1
vim SUSE:HPE Helion OpenStack 8All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Module for Desktop Applications 15 SP1All versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Point of Sale 11 SP3All versions7.2-8.21.6.2
vim SUSE:Linux Enterprise Server 11 SP4-LTSSAll versions7.2-8.21.6.2
vim SUSE:Linux Enterprise Server 12 SP2-BCLAll versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 12 SP3-BCLAll versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 12 SP4All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 12 SP5All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server 15-LTSSAll versions8.0.1568-5.6.1
vim SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions7.4.326-17.6.1
vim SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions7.4.326-17.6.1

Products include Apple Mac Os X, Canonical Ubuntu Linux, Debian Debian Linux, Opensuse Leap, Starwindsoftware Command Center, Starwindsoftware San \& Nas and 1 more.

How do I fix CVE-2019-20807?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-20807 being exploited?

There is no known exploitation of CVE-2019-20807 in the wild and no public exploit code.

All Apple Mac Os X vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-20807, GHSA-f76x-65j4-28x3, RHSA-2020:4453, RLSA-2020:4453, SUSE-SU-2020:14385-1, SUSE-SU-2020:1550-1 and 3 more.

Is CVE-2019-20807 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free