CVE-2019-20807
published 2020-05-28CVE-2019-20807: 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).
PriorityP430medium5.3CVSS 3.1
AVLACLPRLUINSUCLILAL
EPSS
0.49%
39.2th percentile
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).
Affected
24 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | mac_os_x | — | — |
| apple | mac_os_x | — | — |
| apple | macos_catalina_10.15.6_security_update_2020-004_mojave_security_update_2020-004 | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | vim | < vim 2:8.1.2136-1 (bookworm) | vim 2:8.1.2136-1 (bookworm) |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cm1_vim_8.1.1667-1_on_cbl_mariner_1.0 | — | — |
| opensuse | leap | — | — |
| starwindsoftware | command_center | — | — |
| starwindsoftware | san_nas | — | — |
| vim | vim | < 8.1.0881 | 8.1.0881 |
| vim | vim | >= 0 < 2:8.1.2136-1 | 2:8.1.2136-1 |
| vim | vim | >= 0 < 2:8.1.2136-1 | 2:8.1.2136-1 |
| vim | vim | >= 0 < 2:8.1.2136-1 | 2:8.1.2136-1 |
| vim | vim | >= 0 < 2:8.1.2136-1 | 2:8.1.2136-1 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5 | 2:7.4.1689-3ubuntu1.5 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.7 | 2:8.0.1453-1ubuntu1.7 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.4 | 2:8.0.1453-1ubuntu1.4 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.4 | 2:8.1.2269-1ubuntu5.4 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm4 | 2:7.4.052-1ubuntu3.1+esm4 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm3 | 2:7.4.1689-3ubuntu1.5+esm3 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv5.5MEDIUM
vendor_ubuntu5.5MEDIUM
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2021-11-15·CVSS 5.5
CVE-2021-3928 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
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 spe
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2020-10-14·CVSS 5.5
CVE-2019-20807 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
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)
Instructions: In general, a standard system update will make all the necessary changes.
Apple
CVE-2019-20807: macOS Catalina 10.15.6, Security Update 2020-004 Mojave, Security Update 2020-004 High Sierra
vendor_apple·2020-07-15·CVSS 5.3
CVE-2019-20807 [MEDIUM] CVE-2019-20807: macOS Catalina 10.15.6, Security Update 2020-004 Mojave, Security Update 2020-004 High Sierra
Apple Security Update: About the security content of macOS Catalina 10.15.6, Security Update 2020-004 Mojave, Security Update 2020-004 High Sierra
Product: macOS Catalina 10.15.6, Security Update 2020-004 Mojave, Security Update 2020-004 High Sierra
CVE: CVE-2019-20807
Component: Vim
Impact: A remote attacker may be able to cause arbitrary code execution
Description: This issue was addressed with improved checks.
Microsoft
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).
vendor_msrc·2020-05-12·CVSS 5.3
CVE-2019-20807 [MEDIUM] CWE-78 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).
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).
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre
Red Hat
vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
vendor_redhat·2020-02-08·CVSS 5.3
CVE-2019-20807 [MEDIUM] CWE-78 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
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).
A flaw was found in vim in the restricted mode, where all commands that make use of external shells are disabled. However, it was found that users could still execute some arbitrary OS commands in the restricted mode. This flaw was fixed by filtering the functions that can call OS commands. Interfaces such as Python, Ruby, and Lua, are also disabled, as they can be used to execute shell commands. Perl uses the Safe module.
Statement: Upstream suggests that users may still find loopholes to execute a shell commands, it has only been ma
Debian
CVE-2019-20807: vim - In Vim before 8.1.0881, users can circumvent the rvim restricted mode and execut...
vendor_debian·2019·CVSS 5.3
CVE-2019-20807 [MEDIUM] CVE-2019-20807: vim - In Vim before 8.1.0881, users can circumvent the rvim restricted mode and execut...
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).
Scope: local
bookworm: resolved (fixed in 2:8.1.2136-1)
bullseye: resolved (fixed in 2:8.1.2136-1)
forky: resolved (fixed in 2:8.1.2136-1)
sid: resolved (fixed in 2:8.1.2136-1)
trixie: resolved (fixed in 2:8.1.2136-1)
GHSA
GHSA-f76x-65j4-28x3: In Vim before 8
ghsa_unreviewed·2022-05-24
CVE-2019-20807 [HIGH] CWE-78 GHSA-f76x-65j4-28x3: In Vim before 8
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).
OSV
vim vulnerabilities
osv·2021-11-15·CVSS 5.5
CVE-2017-17087 [MEDIUM] vim vulnerabilities
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
appli
OSV
vim vulnerabilities
osv·2020-10-14·CVSS 5.5
CVE-2017-17087 [MEDIUM] vim vulnerabilities
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)
OSV
CVE-2019-20807: In Vim before 8
osv·2020-05-28·CVSS 5.3
CVE-2019-20807 [MEDIUM] CVE-2019-20807: In Vim before 8
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).
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode [fedora-all]
bugzilla·2020-06-02·CVSS 5.3
CVE-2019-20807 [MEDIUM] CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode [fedora-all]
CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE
Bugzilla
CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
bugzilla·2020-06-01·CVSS 5.3
CVE-2019-20807 [MEDIUM] CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
CVE-2019-20807 vim: users can execute arbitrary OS commands via scripting interfaces in the rvim restricted mode
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).
Reference and upstream commit:
https://github.com/vim/vim/releases/tag/v8.1.0881
https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075
Discussion:
Created vim tracking bugs for this issue:
Affects: fedora-all [bug 1842752]
---
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.
---
This issue has been addresse
http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00018.htmlhttp://seclists.org/fulldisclosure/2020/Jul/24https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075https://github.com/vim/vim/releases/tag/v8.1.0881https://lists.debian.org/debian-lts-announce/2022/01/msg00003.htmlhttps://support.apple.com/kb/HT211289https://usn.ubuntu.com/4582-1/https://www.starwindsoftware.com/security/sw-20220812-0003/http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00018.htmlhttp://seclists.org/fulldisclosure/2020/Jul/24https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075https://github.com/vim/vim/releases/tag/v8.1.0881https://lists.debian.org/debian-lts-announce/2022/01/msg00003.htmlhttps://support.apple.com/kb/HT211289https://usn.ubuntu.com/4582-1/https://www.starwindsoftware.com/security/sw-20220812-0003/
2020-05-28
Published