CVSS 3.0
8.6 highCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HHigh (8.6). EPSS 19% estimated probability of exploitation activity in the next 30 days.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExplain CVE-2019-12735 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-12735?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-12735?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-12735 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| vim:vim | before 8.1.1365 |
| neovim:neovim | before 0.3.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 8 | vim | 2:7.4.488-7+deb8u4 | DLA-1871-1 |
| Debian | 9 | neovim | 0.1.7-4+deb9u1 | DSA-4487-1 |
| Debian | 9 | vim | 2:8.0.0197-4+deb9u2 | DSA-4467-1 |
| Debian | 12, 13, 14 | neovim | 0.3.4-3 | DEBIAN-CVE-2019-12735 |
| Debian | 12, 13, 14 | vim | 2:8.1.0875-4 | DEBIAN-CVE-2019-12735 |
| Ubuntu | 16.04:LTS | vim | 2:7.4.1689-3ubuntu1.3 | UBUNTU-CVE-2019-12735 USN-4016-1 |
| Ubuntu | 18.04:LTS | vim | 2:8.0.1453-1ubuntu1.1 | UBUNTU-CVE-2019-12735 USN-4016-1 |
| Ubuntu | Pro:18.04:LTS | neovim | 0.2.2-3ubuntu0.1~esm1 | UBUNTU-CVE-2019-12735 USN-4862-1 |
| Red Hat | enterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 more | vim, vim-X11, vim-common and 4 more | 2:7.4.629-5.el6_10.2 | RHSA-2019:1774 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 more | vim, vim-X11, vim-common and 4 more | 2:7.4.160-6.el7_6 | RHSA-2019:1619 |
| Red Hat | enterprise_linux:8::appstream | vim-X11, vim-common, vim-enhanced and 7 more | 2:8.0.1763-11.el8_0 | RHSA-2019:1619 |
| Red Hat | enterprise_linux:8::baseos | vim, vim-minimal, vim-debuginfo and 5 more | 2:8.0.1763-11.el8_0 | RHSA-2019:1619 |
| Red Hat | rhel_eus:7.4::computenode, rhel_eus:7.4::server | vim, vim-X11, vim-common and 4 more | 2:7.4.160-2.el7_4.1 | RHSA-2019:1947 |
| Red Hat | rhel_eus:7.5::computenode, rhel_eus:7.5::server | vim, vim-X11, vim-common and 4 more | 2:7.4.160-4.el7_5.1 | RHSA-2019:1793 |
| SUSE | Enterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 11 more | vim | 7.4.326-17.3.1 | SUSE-SU-2019:1456-1 |
| SUSE | Linux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Desktop Applications 15 and 1 more | vim | 8.0.1568-5.3.1 | SUSE-SU-2019:1457-1 |
| SUSE | Linux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSS | vim | 7.2-8.21.3.1 | SUSE-SU-2019:14078-1 |
| SUSE | Package Hub 15 | neovim | 0.3.1-bp150.2.6.1 | openSUSE-SU-2019:1551-1 |
| SUSE | Package Hub 15 | neovim | 0.3.7-bp150.2.9.1 | openSUSE-SU-2019:1796-1 |
| SUSE | Package Hub 15 SP1 | neovim | 0.3.7-bp151.3.3.1 | openSUSE-SU-2019:1997-1 |
| openSUSE | Leap 15.0, Leap 15.1 | neovim | 0.3.1-bp150.2.6.1 | openSUSE-SU-2019:1551-1 |
| openSUSE | Leap 15.0, Leap 15.1 | neovim | 0.3.7-lp151.2.7.1 | openSUSE-SU-2019:1759-1 |
| openSUSE | Leap 15.0, Leap 15.1 | vim | 8.0.1568-lp151.5.3.1 | openSUSE-SU-2019:1561-1 |
| openSUSE | Tumbleweed | neovim | 0.5.1-1.1 | openSUSE-SU-2024:11081-1 |
| openSUSE | Tumbleweed | vim | 8.2.3408-1.2 | openSUSE-SU-2024:11497-1 |
| Alpine | v3.7 | vim | 8.0.1359-r2 | ALPINE-CVE-2019-12735 |
| Alpine | v3.8 | vim | 8.1.1365 | ALPINE-CVE-2019-12735 |
| Alpine | v3.9, v3.10, v3.11 and 13 more | vim | 8.1.1365-r0 | ALPINE-CVE-2019-12735 |
| Alpine | v3.10, v3.11, v3.12 and 12 more | neovim | 0.3.6-r0 | ALPINE-CVE-2019-12735 |
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; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
To be successfully and automatically triggered when a specially crafted file is opened, this vulnerability requires 3 parts :
1) The `source!` command inability to check if it is running in sandbox mode (the fix commit prevents this)
2) The `modeline` to be enabled (by default, modeline is disabled when running with root permission. See `Mitigation` steps to disable the modeline)
3) A function, to be inserted in the modeline, that can be used to trigger the `source!` command (e.g.: `assert_fail()` in the public reproducer). To the best of our knowledge, no such functions were found in the default installation of Red Hat Enterprise Linux versions 5, 6 and 7 at the time of the flaw. However, Red Hat Enterprise Linux version 8 contains `assert_fail()`.
Without part 2 or 3, it would be required for an attacker to be able to craft the command line used to open the crafted file, in order to trigger the vulnerability.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | vim-2:7.4.629-5.el6_10.2 | Fixed 2019-07-15 | RHSA-2019:1774 |
| Red Hat Enterprise Linux 7 | vim-2:7.4.160-6.el7_6 | Fixed 2019-06-27 | RHSA-2019:1619 |
| Red Hat Enterprise Linux 7.4 Extended Update Support | vim-2:7.4.160-2.el7_4.1 | Fixed 2019-07-30 | RHSA-2019:1947 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | vim-2:7.4.160-4.el7_5.1 | Fixed 2019-07-16 | RHSA-2019:1793 |
| Red Hat Enterprise Linux 8 | vim-2:8.0.1763-11.el8_0 | Fixed 2019-06-27 | RHSA-2019:1619 |
| Red Hat Enterprise Linux 5 | vim | Out of support scope |
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-12735.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.