CVE-2018-20786
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory...
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
CVE-2018-20786- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
CVE-2018-20786- Updated
- 2026-11-02
EUVDEUVD-2018-13329 No score
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
EUVD-2018-13329- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4r6h-327w-8qwr
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory...
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
GHSA-4r6h-327w-8qwr- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-20786
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
ALPINE-CVE-2018-20786- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
CVE-2018-20786- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-20786
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
DEBIAN-CVE-2018-20786- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-20786
7.5
libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory conditions, leading to a denial of service (application crash), related to screen.c, state.c, and vterm.c.
- Record
UBUNTU-CVE-2018-20786- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUSN-4309-1 No score
vim vulnerabilities
It was discovered that Vim incorrectly handled certain sources. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 12.04 ESM, Ubuntu 14.04 ESM and Ubuntu 16.04 LTS (CVE-2017-11109)
It was discovered that Vim incorrectly handled certain files. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 12.04 ESM and Ubuntu 14.04 ESM. (CVE-2017-5953)
It was discovered that Vim incorrectly handled certain inputs. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 16.06 LTS. (CVE-2018-20786)
It was discovered that Vim incorrectly handled certain inputs. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 18.04 LTS and Ubuntu 19.10. (CVE-2019-20079)
It was discovered that Vim incorrectly handled certain files. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 12.04 ESM, Ubuntu 14.04 ESM and Ubuntu 16.04 LTS. (CVE-2017-6349, CVE-2017-6350)
- Record
USN-4309-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libvtermAlpine:v3.14 |
before 0.1.20190920-r1 | 0.1.20190920-r1 |
libvtermAlpine:v3.15 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.16 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.17 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.18 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.19 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.20 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.21 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.22 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermAlpine:v3.23 |
before 0.1.4-r0 | 0.1.4-r0 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libvtermAlpine:v3.24 |
before 0.1.4-r0 | 0.1.4-r0 |
libvtermDebian:12 |
All versions, plus listed versions 0.1.4-10.2-10.3-10.3.1-10.3.2-1 Show 4 moreShow less0.3.3-10.3.3-20.3.3-30.3~rc1-1 |
None known |
libvtermDebian:13 |
All versions, plus listed versions 0.3.3-3 |
None known |
libvtermDebian:14 |
All versions, plus listed versions 0.3.3-3 |
None known |
vimDebian:12 |
before 2:8.1.0693-1 | 2:8.1.0693-1 |
vimDebian:13 |
before 2:8.1.0693-1 | 2:8.1.0693-1 |
vimDebian:14 |
before 2:8.1.0693-1 | 2:8.1.0693-1 |
vimUbuntu:18.04:LTS |
before 2:8.0.1453-1ubuntu1.3, 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.1 |
2:8.0.1453-1ubuntu1.3 |
libvtermUbuntu:18.04:LTS |
All versions, plus listed versions 0~bzr710-10~bzr715-1 |
None known |
libvtermUbuntu:20.04:LTS |
All versions, plus listed versions 0~bzr718-10.1.2-2 |
None known |
libvtermUbuntu:22.04:LTS |
All versions, plus listed versions 0.1.4-1 |
None known |
libvtermUbuntu:24.04:LTS |
All versions, plus listed versions 0.1.4-10.3.3-20.3.3-2build1 |
None known |
libvtermUbuntu:25.10 |
All versions, plus listed versions 0.3.3-3 |
None known |
libvtermUbuntu:26.10 |
All versions, plus listed versions 0.3.3-3build1 |
None known |
libvtermUbuntu:26.04:LTS |
All versions, plus listed versions 0.3.3-30.3.3-3build1 |
None known |
vimUbuntu:Pro:14.04:LTS From an advisory covering 6 CVEs |
before 2:7.4.052-1ubuntu3.1+esm1, plus listed versions 2:7.4.000-1ubuntu22:7.4.052-1ubuntu12:7.4.052-1ubuntu22:7.4.052-1ubuntu32:7.4.052-1ubuntu3.1 |
2:7.4.052-1ubuntu3.1+esm1 |
vimUbuntu:16.04:LTS From an advisory covering 6 CVEs |
before 2:7.4.1689-3ubuntu1.4, 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 6 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.3 |
2:7.4.1689-3ubuntu1.4 |
vimUbuntu:18.04:LTS From an advisory covering 6 CVEs |
before 2:8.0.1453-1ubuntu1.3, 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.1 |
2:8.0.1453-1ubuntu1.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-20786 is a high vulnerability (CVSS 7.5) in Leonerd Libvterm, published February 24, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.92%, the 87th percentile. Fixed in libvterm 0.1.20190920-r1.
References
github.com/vim/vim/commit/cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8
github.com/vim/vim/issues/3711
usn.ubuntu.com/4309-1
nvd.nist.gov/vuln/detail/CVE-2018-20786
github.com/advisories/GHSA-4r6h-327w-8qwr
security.alpinelinux.org/vuln/CVE-2018-20786
Show 9 moreShow less
security-tracker.debian.org/tracker/CVE-2018-20786
ubuntu.com/security/CVE-2018-20786
ubuntu.com/security/notices/USN-4309-1
cve.org/CVERecord?id=CVE-2018-20786
ubuntu.com/security/CVE-2017-5953
ubuntu.com/security/CVE-2017-6349
ubuntu.com/security/CVE-2017-6350
ubuntu.com/security/CVE-2017-11109
ubuntu.com/security/CVE-2019-20079