{"schemaVersion":3,"id":"CVE-2018-6789","aliases":["UBUNTU-CVE-2018-6789","USN-3565-1","DEBIAN-CVE-2018-6789","DLA-1274-1","DSA-4110-1"],"status":"published","duplicateOf":null,"title":"Exim Buffer Overflow Vulnerability","description":"An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. By sending a handcrafted message, a buffer overflow may happen. This can be used to execute code remotely.","dates":{"published":"2018-02-08T23:00:00.000Z","modified":"2025-10-21T23:45:56.260Z","reserved":null,"kevAdded":["2021-11-03T00:00:00.000Z"],"kevDue":["2022-05-03T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.82137,"percentile":0.99654,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.82137},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.82137,"percentile":0.99654}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.82137,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.82137,"percentile":0.99654}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2021-11-03T00:00:00.000Z","dueDate":"2022-05-03T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Exim Buffer Overflow Vulnerability","description":"Exim contains a buffer overflow vulnerability in the base64d function part of the SMTP listener that may allow for remote code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2018-6789","label":"nvd.nist.gov/vuln/detail/CVE-2018-6789"}],"vendor":"Exim","product":"Exim","ransomware":true,"ransomwareUse":"Known","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2021-11-03T00:00:00.000Z","dueDate":"2022-05-03T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Exim Buffer Overflow Vulnerability","description":"Exim contains a buffer overflow vulnerability in the base64d function part of the SMTP listener that may allow for remote code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2018-6789","label":"nvd.nist.gov/vuln/detail/CVE-2018-6789"}],"vendor":"Exim","product":"Exim","ransomware":true,"ransomwareUse":"Known","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"known","sources":["cisa"]},"exploits":[{"id":"REF_F1F5FB73C3DC3C5F","name":"Exploit Reference (devco.re)","source":"reference","url":"https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_C435E0519346B344","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"45671","name":"exim 4.90 - Remote Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/45671","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"linux","file":"exploits/linux/remote/45671.py","codes":["CVE-2018-6789"]},"metasploit":null},{"id":"44571","name":"Exim < 4.90.1 - 'base64d' Remote Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44571","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"linux","file":"exploits/linux/remote/44571.py","codes":["CVE-2018-6789"]},"metasploit":null}],"exploitCount":4,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"14.04","noFixRecorded":false,"fixedIn":null},{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"17.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"14.04 | 16.04 | 17.10","eol":{"isEol":true,"eolDate":"2019-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"14.04","label":"14.04 'Trusty Tahr' (LTS)","eolFrom":"2019-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"14.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/exim4","purlType":"deb","versions":[{"text":"< 4.90.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.84.2-2+deb8u5","noFixRecorded":false,"fixedIn":null},{"text":"< 4.89-2+deb9u3","noFixRecorded":false,"fixedIn":null},{"text":"< 4.80-7+deb7u6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.90.1-1 | < 4.84.2-2+deb8u5 | < 4.89-2+deb9u3 | < 4.80-7+deb7u6","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/exim4","purlType":"deb","versions":[{"text":"< 4.82-3ubuntu2.4","noFixRecorded":false,"fixedIn":null},{"text":"< 4.86.2-2ubuntu2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.82-3ubuntu2.4 | < 4.86.2-2ubuntu2.3","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2018-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (Wheezy)","eolFrom":"2018-05-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"exim","product":"exim","name":"Exim","label":"exim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.90.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.90.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"exim","label":"Exim","category":"server-app"}},"hubHref":"/vendor/exim/exim"}],"affectedCount":5,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://exim.org/static/doc/security/CVE-2018-6789.txt","label":"exim.org/static/doc/security/CVE-2018-6789.txt","hostname":"exim.org","tags":["X Refsource CONFIRM","Vendor Advisory","REPORT"]},{"url":"http://www.openwall.com/lists/oss-security/2018/02/07/2","label":"www.openwall.com/lists/oss-security/2018/02/07/2","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","REPORT"]},{"url":"https://usn.ubuntu.com/3565-1/","label":"usn.ubuntu.com/3565-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://openwall.com/lists/oss-security/2018/02/10/2","label":"openwall.com/lists/oss-security/2018/02/10/2","hostname":"openwall.com","tags":["X Refsource CONFIRM","Mailing List","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id/1040461","label":"www.securitytracker.com/id/1040461","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Broken Link","Third Party Advisory"]},{"url":"https://www.debian.org/security/2018/dsa-4110","label":"www.debian.org/security/2018/dsa-4110","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Mailing List","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/44571/","label":"www.exploit-db.com/exploits/44571/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00009.html","label":"lists.debian.org/debian-lts-announce/2018/02/msg00009.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1","label":"git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1","hostname":"git.exim.org","tags":["X Refsource CONFIRM","Patch"]},{"url":"https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/","label":"devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/","hostname":"devco.re","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/103049","label":"www.securityfocus.com/bid/103049","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Broken Link","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/45671/","label":"www.exploit-db.com/exploits/45671/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html","label":"packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]},{"url":"https://ubuntu.com/security/CVE-2018-6789","label":"ubuntu.com/security/CVE-2018-6789","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3565-1","label":"ubuntu.com/security/notices/USN-3565-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-6789","label":"www.cve.org/CVERecord?id=CVE-2018-6789","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog","hostname":"www.cisa.gov","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-6789","label":"security-tracker.debian.org/tracker/CVE-2018-6789","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:0677-1","OPENSUSE-SU-2021:0753-1","OPENSUSE-SU-2021:0754-1","OPENSUSE-SU-2024:10746-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0677-1","OPENSUSE-SU-2021:0753-1","OPENSUSE-SU-2021:0754-1","OPENSUSE-SU-2024:10746-1"]},"timeline":[{"kind":"published","date":"2018-02-08T23:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2021-11-03T00:00:00.000Z","label":"Added to CISA KEV","detail":"Exim Buffer Overflow Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-05-03T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:45:56.260Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:17:14.843Z","stale":false,"partial":false}}