{"id":"CVE-2018-20786","aliases":["ALPINE-CVE-2018-20786","DEBIAN-CVE-2018-20786","EUVD-2018-13329","GHSA-4r6h-327w-8qwr","UBUNTU-CVE-2018-20786","USN-4309-1"],"status":"published","title":"libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory...","description":"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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02916,"percentile":0.87126,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2019-02-24T14:00:00Z","modified":"2026-11-03T06:31:28Z","fixes":[{"ecosystem":"Alpine:v3.14","package":"libvterm","fixed_in":["0.1.20190920-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"libvterm","fixed_in":["0.1.4-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"vim","fixed_in":["2:8.1.0693-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"vim","fixed_in":["2:8.1.0693-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"vim","fixed_in":["2:8.1.0693-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"vim","fixed_in":["2:8.0.1453-1ubuntu1.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.14","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.20190920-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.4-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.4-1","0.2-1","0.3-1","0.3.1-1","0.3.2-1","0.3.3-1","0.3.3-2","0.3.3-3","0.3~rc1-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-3"]},{"source":"osv","ecosystem":"Debian:14","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-3"]},{"source":"osv","ecosystem":"Debian:12","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.1.0693-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.1.0693-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.1.0693-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.0.1453-1ubuntu1.3"}]}],"versions":["2:8.0.0197-4ubuntu5","2:8.0.1144-1ubuntu1","2:8.0.1401-1ubuntu1","2:8.0.1401-1ubuntu2","2:8.0.1401-1ubuntu3","2:8.0.1453-1ubuntu1","2:8.0.1453-1ubuntu1.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~bzr710-1","0~bzr715-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~bzr718-1","0.1.2-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.4-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.4-1","0.3.3-2","0.3.3-2build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-3build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libvterm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-3","0.3.3-3build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.052-1ubuntu3.1+esm1"}]}],"versions":["2:7.4.000-1ubuntu2","2:7.4.052-1ubuntu1","2:7.4.052-1ubuntu2","2:7.4.052-1ubuntu3","2:7.4.052-1ubuntu3.1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:7.4.1689-3ubuntu1.4"}]}],"versions":["2:7.4.712-2ubuntu4","2:7.4.826-1ubuntu1","2:7.4.826-1ubuntu2","2:7.4.826-1ubuntu3","2:7.4.963-1ubuntu1","2:7.4.963-1ubuntu4","2:7.4.963-1ubuntu5","2:7.4.1689-3ubuntu1","2:7.4.1689-3ubuntu1.1","2:7.4.1689-3ubuntu1.2","2:7.4.1689-3ubuntu1.3"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"vim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.0.1453-1ubuntu1.3"}]}],"versions":["2:8.0.0197-4ubuntu5","2:8.0.1144-1ubuntu1","2:8.0.1401-1ubuntu1","2:8.0.1401-1ubuntu2","2:8.0.1401-1ubuntu3","2:8.0.1453-1ubuntu1","2:8.0.1453-1ubuntu1.1"],"bundled":6}],"products":[{"vendor":"leonerd","product":"libvterm"}],"references":[{"url":"https://github.com/vim/vim/commit/cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/vim/vim/issues/3711","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://usn.ubuntu.com/4309-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20786"},{"url":"https://usn.ubuntu.com/4309-1"},{"url":"https://github.com/advisories/GHSA-4r6h-327w-8qwr"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20786","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20786","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20786","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4309-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20786","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5953","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-6349","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-6350","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11109","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-20079","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:00:00Z","modified":"2026-10-15T17:41:53.977Z","updated_at":"2026-11-02T14:35:00.237825Z"}],"euvd":[{"id":"EUVD-2018-13329","description":"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.","status":"published","published":"2019-02-24T14:00:00Z","modified":"2026-10-15T17:41:53Z","updated_at":"2026-11-02T17:00:11.403253Z"}],"ghsa":[{"id":"GHSA-4r6h-327w-8qwr","title":"libvterm through 0+bzr726, as used in Vim and other products, mishandles certain out-of-memory...","description":"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.","status":"published","published":"2022-05-13T01:27:31Z","modified":"2026-10-15T18:32:33Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:13:36.44286Z"}],"nvd":[{"id":"CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:29:00.283Z","modified":"2026-10-15T18:17:19.91Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:04:54.21788Z"}],"osv":[{"id":"ALPINE-CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:29:00.283Z","modified":"2026-11-03T06:31:28.926524539Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T07:18:23.800469Z"},{"id":"CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:29:00.283Z","modified":"2026-10-20T13:28:34.185614659Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:29:00.283Z","modified":"2026-10-15T21:47:30.870793146Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-20786","description":"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.","status":"published","published":"2019-02-24T14:29:00Z","modified":"2026-10-17T12:55:25.459554956Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"USN-4309-1","title":"vim vulnerabilities","description":"It was discovered that Vim incorrectly handled certain sources.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 12.04 ESM, Ubuntu 14.04 ESM and\nUbuntu 16.04 LTS (CVE-2017-11109)\n\nIt was discovered that Vim incorrectly handled certain files.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 12.04 ESM and Ubuntu 14.04 ESM.\n(CVE-2017-5953)\n\nIt was discovered that Vim incorrectly handled certain inputs.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 16.06 LTS. (CVE-2018-20786)\n\nIt was discovered that Vim incorrectly handled certain inputs. An attacker\ncould possibly use this issue to cause a denial of service or\nexecute arbitrary code. This issue only affected Ubuntu 18.04 LTS and\nUbuntu 19.10. (CVE-2019-20079)\n\nIt was discovered that Vim incorrectly handled certain files. An attacker\ncould possibly use this issue to execute arbitrary code. This issue\nonly affected Ubuntu 12.04 ESM, Ubuntu 14.04 ESM and Ubuntu 16.04 LTS.\n(CVE-2017-6349, CVE-2017-6350)\n","status":"published","published":"2020-03-23T14:29:22Z","modified":"2026-04-27T15:48:45.494387678Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
