cve.bz

CVE-2019-20807 OS Command Injection

5.3 mediumEPSS 0.5%Fix available

Medium (5.3). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-20807 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-20807?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-20807?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-20807 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 8.1.0881
debian:debian_linux9.0
opensuse:leap15.1
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
apple:mac_os_x10.13.6
apple:mac_os_x10.14.6
starwindsoftware:command_center2:build_6003
starwindsoftware:san_&_nas1.0:update_1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9vim2:8.0.0197-4+deb9u4DLA-2876-1
Debian12, 13, 14vim2:8.1.2136-1DEBIAN-CVE-2019-20807
Ubuntu16.04:LTSvim2:7.4.1689-3ubuntu1.5UBUNTU-CVE-2019-20807 USN-4582-1
Ubuntu18.04:LTSvim2:8.0.1453-1ubuntu1.4UBUNTU-CVE-2019-20807 USN-4582-1 USN-5147-1
Ubuntu20.04:LTSvim2:8.1.2269-1ubuntu5.4USN-5147-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm4UBUNTU-CVE-2019-20807 USN-5147-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm3USN-5147-1
Red Hatenterprise_linux:8::appstreamvim-X11, vim-common, vim-enhanced and 7 more2:8.0.1763-15.el8RHSA-2020:4453
Red Hatenterprise_linux:8::baseosvim, vim-minimal, vim-debuginfo and 5 more2:8.0.1763-15.el8RHSA-2020:4453
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 12 morevim7.4.326-17.6.1SUSE-SU-2020:1550-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 5 morevim8.0.1568-5.6.1SUSE-SU-2020:1551-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSvim7.2-8.21.6.2SUSE-SU-2020:14385-1
openSUSELeap 15.1vim8.0.1568-lp151.5.6.1openSUSE-SU-2020:0794-1
Rocky Linux8vim2:8.0.1763-15.el8RLSA-2020:4453

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Upstream suggests that users may still find loopholes to execute a shell commands, it has only been made difficult. So administrators should not assume that vim restricted mode will completely disable execution of OS commands.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8vim-2:8.0.1763-15.el8Fixed 2020-11-04RHSA-2020:4453
Red Hat Enterprise Linux 5vimOut of support scope
Red Hat Enterprise Linux 6vimOut of support scope
Red Hat Enterprise Linux 7vimWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-20807.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON