CVEfocus › CVE database › CVE-2018-20786

CVE-2018-20786

CVSS 7.5 HighEPSS 2.9% (higher than 87% of CVEs)Published 2019-02-24Updated 2026-10-15Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
10Fix pending
6Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libvtermFix pendingUBUNTU-CVE-2018-20786
Ubuntu 26.04libvtermFix pendingUBUNTU-CVE-2018-20786
Ubuntu 26.04vimNot affected
vulnerable_code_not_present
Ubuntu 25.10libvtermWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2018-20786
Ubuntu 25.10vimNot affected
vulnerable_code_not_present
Ubuntu 24.04libvtermFix pendingUBUNTU-CVE-2018-20786
Ubuntu 24.04vimNot affected
vulnerable_code_not_present
Ubuntu 22.04libvtermFix pendingUBUNTU-CVE-2018-20786
Ubuntu 22.04vimNot affected
vulnerable_code_not_present
Ubuntu 20.04libvtermWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2018-20786
Ubuntu 18.04libvtermWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2018-20786
Ubuntu 18.04vimFixed2:8.0.1453-1ubuntu1.3UBUNTU-CVE-2018-20786
Ubuntu 16.04vimNot affected
vulnerable_code_not_present
Debian 14libvtermWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-20786
Debian 14vimFixed2:8.1.0693-1DEBIAN-CVE-2018-20786
Debian 13libvtermWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-20786
Debian 13vimFixed2:8.1.0693-1DEBIAN-CVE-2018-20786
Debian 12libvtermWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-20786
Debian 12vimFixed2:8.1.0693-1DEBIAN-CVE-2018-20786
Red Hat Enterprise Linux 8vimFix pending
Fix deferred
Red Hat Enterprise Linux 8vim-X11Fix pending
Fix deferred
Red Hat Enterprise Linux 8vim-commonFix pending
Fix deferred
Red Hat Enterprise Linux 8vim-enhancedFix pending
Fix deferred
Red Hat Enterprise Linux 8vim-filesystemFix pending
Fix deferred
Red Hat Enterprise Linux 8vim-minimalFix pending
Fix deferred
Alpine Linux 3.24libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.23libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.22libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.21libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.20libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.19libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.18libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.17libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.16libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.15libvtermFixed0.1.4-r0ALPINE-CVE-2018-20786
Alpine Linux 3.14libvtermFixed0.1.20190920-r1ALPINE-CVE-2018-20786

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.