{"schemaVersion":3,"id":"CVE-2018-20786","aliases":["UBUNTU-CVE-2018-20786","DEBIAN-CVE-2018-20786","CGA-9rhg-35fv-9h27","CGA-rfmm-w96r-49pm"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-02-24T14:00:00.000Z","modified":"2026-10-15T17:41:53.977Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.02892,"percentile":0.86709,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.07999999999999986,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02972},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02786,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02892,"percentile":0.86709}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02786,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02972,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02892,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02892,"percentile":0.86709}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_VIM_VIM","name":"Vim","source":"github","url":"https://github.com/vim/vim/issues/3711","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-476","name":"NULL Pointer Dereference","description":"The product dereferences a pointer that it expects to be valid but is NULL.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/476.html"}],"affected":[{"vendor":"chainguard","product":"libvterm","name":"libvterm","label":"libvterm","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libvterm","purlType":"apk","versions":[{"text":"< 0.3.3-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3-r4","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libvterm","name":"libvterm","label":"libvterm","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libvterm","purlType":"apk","versions":[{"text":"< 0.3.3-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3-r4","eol":null,"hubHref":null},{"vendor":"debian","product":"libvterm","name":"libvterm","label":"libvterm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libvterm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"< 2:8.1.0693-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:8.1.0693-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libvterm","name":"libvterm","label":"libvterm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libvterm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vim","name":"vim","label":"vim","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vim","purlType":"deb","versions":[{"text":"< 2:8.0.1453-1ubuntu1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:8.0.1453-1ubuntu1.3","eol":null,"hubHref":null},{"vendor":"leonerd","product":"libvterm","name":"libvterm","label":"libvterm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0\\+bzr726","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0\\+bzr726","eol":null,"hubHref":"/vendor/leonerd/libvterm"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/commit/cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8","label":"github.com/vim/vim/commit/cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","FIX"]},{"url":"https://github.com/vim/vim/issues/3711","label":"github.com/vim/vim/issues/3711","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","EVIDENCE"]},{"url":"https://usn.ubuntu.com/4309-1/","label":"usn.ubuntu.com/4309-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-20786","label":"ubuntu.com/security/CVE-2018-20786","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4309-1","label":"ubuntu.com/security/notices/USN-4309-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20786","label":"www.cve.org/CVERecord?id=CVE-2018-20786","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20786","label":"security-tracker.debian.org/tracker/CVE-2018-20786","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-4309-1"],"duplicates":[],"related":["CGA-C789-F9M3-RHMM","CGA-P779-9JWM-H39Q","USN-4309-1"]},"timeline":[{"kind":"published","date":"2019-02-24T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-15T17:41:53.977Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:00:43.481Z","stale":false,"partial":false}}