CVE-2018-20786
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libvterm | Fix pending | UBUNTU-CVE-2018-20786 | |
| Ubuntu 26.04 | libvterm | Fix pending | UBUNTU-CVE-2018-20786 | |
| Ubuntu 26.04 | vim | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libvterm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-20786 | |
| Ubuntu 25.10 | vim | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libvterm | Fix pending | UBUNTU-CVE-2018-20786 | |
| Ubuntu 24.04 | vim | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libvterm | Fix pending | UBUNTU-CVE-2018-20786 | |
| Ubuntu 22.04 | vim | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libvterm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-20786 | |
| Ubuntu 18.04 | libvterm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-20786 | |
| Ubuntu 18.04 | vim | Fixed | 2:8.0.1453-1ubuntu1.3 | UBUNTU-CVE-2018-20786 |
| Ubuntu 16.04 | vim | Not affected vulnerable_code_not_present | ||
| Debian 14 | libvterm | Will 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 14 | vim | Fixed | 2:8.1.0693-1 | DEBIAN-CVE-2018-20786 |
| Debian 13 | libvterm | Will 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 13 | vim | Fixed | 2:8.1.0693-1 | DEBIAN-CVE-2018-20786 |
| Debian 12 | libvterm | Will 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 12 | vim | Fixed | 2:8.1.0693-1 | DEBIAN-CVE-2018-20786 |
| Red Hat Enterprise Linux 8 | vim | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | vim-X11 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | vim-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | vim-enhanced | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | vim-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | vim-minimal | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.23 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.22 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.21 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.20 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.19 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.18 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.17 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.16 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.15 | libvterm | Fixed | 0.1.4-r0 | ALPINE-CVE-2018-20786 |
| Alpine Linux 3.14 | libvterm | Fixed | 0.1.20190920-r1 | ALPINE-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:
- https://usn.ubuntu.com/4309-1/ (vendor-advisory)
References
- https://github.com/vim/vim/commit/cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8
- https://github.com/vim/vim/issues/3711
- https://usn.ubuntu.com/4309-1/
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.