Every CVE Search/ Get API key

CVE-2018-20786

libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory...

7.5 HighFix available

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

2.92%Up 1.9 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
libvterm
Alpine:v3.14
before 0.1.20190920-r1
0.1.20190920-r1
libvterm
Alpine:v3.15
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.16
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.17
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.18
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.19
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.20
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.21
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.22
before 0.1.4-r0
0.1.4-r0
libvterm
Alpine:v3.23
before 0.1.4-r0
0.1.4-r0
Show 18 moreShow less
Affected packages
PackageAffectedFixed
libvterm
Alpine:v3.24
before 0.1.4-r0
0.1.4-r0
libvterm
Debian:12
All versions, plus listed versions
0.1.4-10.2-10.3-10.3.1-10.3.2-1
Show 4 moreShow less
0.3.3-10.3.3-20.3.3-30.3~rc1-1
None known
libvterm
Debian:13
All versions, plus listed versions
0.3.3-3
None known
libvterm
Debian:14
All versions, plus listed versions
0.3.3-3
None known
vim
Debian:12
before 2:8.1.0693-1
2:8.1.0693-1
vim
Debian:13
before 2:8.1.0693-1
2:8.1.0693-1
vim
Debian:14
before 2:8.1.0693-1
2:8.1.0693-1
vim
Ubuntu: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
libvterm
Ubuntu:18.04:LTS
All versions, plus listed versions
0~bzr710-10~bzr715-1
None known
libvterm
Ubuntu:20.04:LTS
All versions, plus listed versions
0~bzr718-10.1.2-2
None known
libvterm
Ubuntu:22.04:LTS
All versions, plus listed versions
0.1.4-1
None known
libvterm
Ubuntu:24.04:LTS
All versions, plus listed versions
0.1.4-10.3.3-20.3.3-2build1
None known
libvterm
Ubuntu:25.10
All versions, plus listed versions
0.3.3-3
None known
libvterm
Ubuntu:26.10
All versions, plus listed versions
0.3.3-3build1
None known
libvterm
Ubuntu:26.04:LTS
All versions, plus listed versions
0.3.3-30.3.3-3build1
None known
vim
Ubuntu: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
vim
Ubuntu: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 less
2: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
vim
Ubuntu: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

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
first indexedCVE 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

Show 9 moreShow less
MoveEnter Open