CVE-2019-20807
In Vim before 8.1.0881, users can circumvent the rvim restricted mode and execute arbitrary OS...
CVE-2019-20807 is a medium vulnerability (CVSS 5.3) in Vim, published May 28, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in vim 2:8.1.2136-1.
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).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
NVD Score used
5.3
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).
- Record
CVE-2019-20807- 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 - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-78
- Updated
- 2026-11-02
CVE List No score
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).
- Record
CVE-2019-20807- Updated
- 2026-11-02
EUVDEUVD-2019-11344 No score
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).
- Record
EUVD-2019-11344- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f76x-65j4-28x3
5.3
In Vim before 8.1.0881, users can circumvent the rvim restricted mode and execute arbitrary OS...
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).
- Record
GHSA-f76x-65j4-28x3- 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 - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
5.3
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).
- Record
CVE-2019-20807- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-20807
5.3
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).
- Record
DEBIAN-CVE-2019-20807- 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 - Updated
- 2026-11-02
Show 9 moreShow less
OSVRHSA-2020:4453
5.3
Red Hat Security Advisory: vim security update
- Record
RHSA-2020:4453- 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 - Updated
- 2026-11-02
OSVRLSA-2020:4453
5.3
Moderate: vim security update
Vim (Vi IMproved) is an updated and improved version of the vi editor.
Security Fix(es):
- vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode (CVE-2019-20807)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.3 Release Notes linked from the References section.
- Record
RLSA-2020:4453- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-20807
5.3
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).
- Record
UBUNTU-CVE-2019-20807- 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 - Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0794-1 No score
Security update for vim
This update for vim fixes the following issues:
- CVE-2019-20807: Fixed an issue where escaping from the restrictive mode of vim was possible using interfaces (bsc#1172225).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2020:0794-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:14385-1 No score
Security update for vim
This update for vim fixes the following issues:
- CVE-2019-20807: Fixed an issue where escaping from the restrictive mode of vim was possible using interfaces (bsc#1172225).
- Record
SUSE-SU-2020:14385-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:1550-1 No score
Security update for vim
This update for vim fixes the following issues:
- CVE-2019-20807: Fixed an issue where escaping from the restrictive mode of vim was possible using interfaces (bsc#1172225 and bsc#1172031).
- Record
SUSE-SU-2020:1550-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:1551-1 No score
Security update for vim
This update for vim fixes the following issues:
- CVE-2019-20807: Fixed an issue where escaping from the restrictive mode of vim was possible using interfaces (bsc#1172225).
- Record
SUSE-SU-2020:1551-1- Updated
- 2026-11-02
OSVUSN-4582-1 No score
vim vulnerabilities
It was discovered that Vim incorrectly handled permissions on the .swp file. A local attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-17087)
It was discovered that Vim incorrectly handled restricted mode. A local attacker could possibly use this issue to bypass restricted mode and execute arbitrary commands. Note: This update only makes executing shell commands more difficult. Restricted mode should not be considered a complete security measure. (CVE-2019-20807)
- Record
USN-4582-1- Updated
- 2026-11-02
OSVUSN-5147-1 No score
vim vulnerabilities
It was discovered that Vim incorrectly handled permissions on the .swp file. A local attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 14.04 ESM. (CVE-2017-17087)
It was discovered that Vim incorrectly handled restricted mode. A local attacker could possibly use this issue to bypass restricted mode and execute arbitrary commands. Note: This update only makes executing shell commands more difficult. Restricted mode should not be considered a complete security measure. This issue only affected Ubuntu 14.04 ESM. (CVE-2019-20807)
Brian Carpenter discovered that vim incorrectly handled memory when opening certain files. If a user was tricked into opening a specially crafted file, a remote attacker could crash the application, leading to a denial of service, or possible execute arbitrary code with user privileges. This issue only affected Ubuntu 20.04 LTS, Ubuntu 21.04 and Ubuntu 21.10. (CVE-2021-3872)
It was discovered that vim incorrectly handled memory when opening certain files. If a user was tricked into opening a specially crafted file, a remote attacker could crash the application, leading to a denial of service, or possible execute arbitrary code with user privileges. (CVE-2021-3903)
It was discovered that vim incorrectly handled memory when opening certain files. If a user was tricked into opening a specially crafted file, a remote attacker could crash the application, leading to a denial of service, or possible execute arbitrary code with user privileges. (CVE-2021-3927)
It was discovered that vim incorrectly handled memory when opening certain files. If a user was tricked into opening a specially crafted file, a remote attacker could crash the application, leading to a denial of service, or possible execute arbitrary code with user privileges. (CVE-2021-3928)
- Record
USN-5147-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
vimDebian:12 |
before 2:8.1.2136-1 | 2:8.1.2136-1 |
vimDebian:13 |
before 2:8.1.2136-1 | 2:8.1.2136-1 |
vimDebian:14 |
before 2:8.1.2136-1 | 2:8.1.2136-1 |
vimDebian:9 |
before 2:8.0.0197-4+deb9u4, plus listed versions 2:8.0.0197-42:8.0.0197-4+deb9u12:8.0.0197-4+deb9u22:8.0.0197-4+deb9u3 |
2:8.0.0197-4+deb9u4 |
vim-X11Red Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-X11-debuginfoRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-commonRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-common-debuginfoRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-debuginfoRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-debugsourceRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
Show 45 moreShow less
| Package | Affected | Fixed |
|---|---|---|
vim-enhancedRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-enhanced-debuginfoRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-filesystemRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-minimal-debuginfoRed Hat:enterprise_linux:8::appstream |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vimRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-X11-debuginfoRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-common-debuginfoRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-debuginfoRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-debugsourceRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-enhanced-debuginfoRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-minimalRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vim-minimal-debuginfoRed Hat:enterprise_linux:8::baseos |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vimRocky Linux:8 |
before 2:8.0.1763-15.el8 | 2:8.0.1763-15.el8 |
vimSUSE:Linux Enterprise Point of Sale 11 SP3 |
before 7.2-8.21.6.2 | 7.2-8.21.6.2 |
vimSUSE:Linux Enterprise Server 11 SP4-LTSS |
before 7.2-8.21.6.2 | 7.2-8.21.6.2 |
vimSUSE:HPE Helion OpenStack 8 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:OpenStack Cloud 7 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:OpenStack Cloud 8 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:OpenStack Cloud Crowbar 8 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP2-LTSS |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP2-BCL |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP3-LTSS |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP3-BCL |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP4 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server 12 SP5 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Enterprise Storage 5 |
before 7.4.326-17.6.1 | 7.4.326-17.6.1 |
vimSUSE:Linux Enterprise Module for Basesystem 15 SP1 |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise Module for Desktop Applications 15 SP1 |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise Module for Desktop Applications 15 SP2 |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise Server 15-LTSS |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimSUSE:Linux Enterprise Server for SAP Applications 15 |
before 8.0.1568-5.6.1 | 8.0.1568-5.6.1 |
vimUbuntu:Pro:14.04:LTS |
before 2:7.4.052-1ubuntu3.1+esm4, plus listed versions 2:7.4.000-1ubuntu22:7.4.052-1ubuntu12:7.4.052-1ubuntu22:7.4.052-1ubuntu32:7.4.052-1ubuntu3.12:7.4.052-1ubuntu3.1+esm12:7.4.052-1ubuntu3.1+esm3 |
2:7.4.052-1ubuntu3.1+esm4 |
vimUbuntu:16.04:LTS |
before 2:7.4.1689-3ubuntu1.5, plus listed versions 2:7.4.712-2ubuntu42:7.4.826-1ubuntu12:7.4.826-1ubuntu22:7.4.826-1ubuntu32:7.4.963-1ubuntu1 Show 7 moreShow less2:7.4.963-1ubuntu42:7.4.963-1ubuntu52:7.4.1689-3ubuntu12:7.4.1689-3ubuntu1.12:7.4.1689-3ubuntu1.22:7.4.1689-3ubuntu1.32:7.4.1689-3ubuntu1.4 |
2:7.4.1689-3ubuntu1.5 |
vimUbuntu:18.04:LTS |
before 2:8.0.1453-1ubuntu1.4, plus listed versions 2:8.0.0197-4ubuntu52:8.0.1144-1ubuntu12:8.0.1401-1ubuntu12:8.0.1401-1ubuntu22:8.0.1401-1ubuntu32:8.0.1453-1ubuntu12:8.0.1453-1ubuntu1.12:8.0.1453-1ubuntu1.3 |
2:8.0.1453-1ubuntu1.4 |
vimUbuntu:Pro:16.04:LTS |
before 2:7.4.1689-3ubuntu1.5+esm3, plus listed versions 2:7.4.712-2ubuntu42:7.4.826-1ubuntu12:7.4.826-1ubuntu22:7.4.826-1ubuntu32:7.4.963-1ubuntu1 Show 9 moreShow less2:7.4.963-1ubuntu42:7.4.963-1ubuntu52:7.4.1689-3ubuntu12:7.4.1689-3ubuntu1.12:7.4.1689-3ubuntu1.22:7.4.1689-3ubuntu1.32:7.4.1689-3ubuntu1.42:7.4.1689-3ubuntu1.52:7.4.1689-3ubuntu1.5+esm2 |
2:7.4.1689-3ubuntu1.5+esm3 |
vimUbuntu:18.04:LTS |
before 2:8.0.1453-1ubuntu1.7, plus listed versions 2:8.0.0197-4ubuntu52:8.0.1144-1ubuntu12:8.0.1401-1ubuntu12:8.0.1401-1ubuntu22:8.0.1401-1ubuntu3 Show 5 moreShow less2:8.0.1453-1ubuntu12:8.0.1453-1ubuntu1.12:8.0.1453-1ubuntu1.32:8.0.1453-1ubuntu1.42:8.0.1453-1ubuntu1.6 |
2:8.0.1453-1ubuntu1.7 |
vimUbuntu:20.04:LTS |
before 2:8.1.2269-1ubuntu5.4, plus listed versions 2:8.1.0875-5ubuntu22:8.1.0875-5ubuntu32:8.1.0875-5ubuntu42:8.1.2269-1ubuntu12:8.1.2269-1ubuntu42:8.1.2269-1ubuntu52:8.1.2269-1ubuntu5.3 |
2:8.1.2269-1ubuntu5.4 |
vimopenSUSE:Leap 15.1 |
before 8.0.1568-lp151.5.6.1 | 8.0.1568-lp151.5.6.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/vim/vim/releases/tag/v8.1.0881
github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075
lists.opensuse.org/opensuse-security-announce/2020-06/msg00018.html
support.apple.com/kb/HT211289
seclists.org/fulldisclosure/2020/Jul/24
usn.ubuntu.com/4582-1
Show 29 moreShow less
lists.debian.org/debian-lts-announce/2022/01/msg00003.html
starwindsoftware.com/security/sw-20220812-0003
nvd.nist.gov/vuln/detail/CVE-2019-20807
github.com/advisories/GHSA-f76x-65j4-28x3
security-tracker.debian.org/tracker/CVE-2019-20807
access.redhat.com/errata/RHSA-2020:4453
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1745476
bugzilla.redhat.com/show_bug.cgi?id=1842658
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4453.json
access.redhat.com/security/cve/CVE-2019-20807
cve.org/CVERecord?id=CVE-2019-20807
errata.rockylinux.org/RLSA-2020:4453
suse.com/support/update/announcement/2020/suse-su-202014385-1
bugzilla.suse.com/1172225
suse.com/security/cve/CVE-2019-20807
suse.com/support/update/announcement/2020/suse-su-20201550-1
bugzilla.suse.com/1172031
suse.com/support/update/announcement/2020/suse-su-20201551-1
ubuntu.com/security/CVE-2019-20807
ubuntu.com/security/notices/USN-4582-1
ubuntu.com/security/notices/USN-5147-1
ubuntu.com/security/CVE-2017-17087
ubuntu.com/security/CVE-2021-3872
ubuntu.com/security/CVE-2021-3903
ubuntu.com/security/CVE-2021-3927
ubuntu.com/security/CVE-2021-3928
lists.opensuse.org/archives/list/[email protected]/thread/6PO7KU3LZCS7CIDBMXZNNIWTS66OAR3L