Home / Exim / Exim / CVE-2018-6789
CVE-2018-6789: is it exploited, and which versions of Exim are affected and fixed?
CVE-2018-6789 is a buffer overflow vulnerability in Exim, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on November 3, 2021, with a federal due date of May 3, 2022. Affected: exim before 4.90.1, debian linux 7.0, debian linux 8.0 and 4 more (NVD). Fixed in 4.90.1 (NVD). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:35 UTC.
What is CVE-2018-6789?
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.
From the CVE record by mitre, last updated October 21, 2025, 23:45 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| exim | exim | before 4.90.1 | application |
| debian | debian linux | 7.0 | operating system |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 17.10 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 02:02 UTC.
How severe is CVE-2018-6789?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-6789 exploited in the wild?
- CISA KEV
- Listed as Exim Buffer Overflow Vulnerability, added November 3, 2021; federal agencies must act by May 3, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Known
- CISA's summary
- Exim contains a buffer overflow vulnerability in the base64d function part of the SMTP listener that may allow for remote code execution.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, February 7, 2025)
- EPSS
- 82.1% probability of exploitation activity in the next 30 days, percentile 99.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-120 Buffer Copy without Checking Size of Input
Where are the vendor advisories and references?
- https://exim.org/static/doc/security/CVE-2018-6789.txt x_refsource_CONFIRM
- [oss-security] 20180207 CVE-2018-6789 Exim 4.90 and earlier: buffer overflow mailing-list, x_refsource_MLIST
- USN-3565-1 vendor-advisory, x_refsource_UBUNTU
- http://openwall.com/lists/oss-security/2018/02/10/2 x_refsource_CONFIRM
- 1040461 vdb-entry, x_refsource_SECTRACK
- DSA-4110 vendor-advisory, x_refsource_DEBIAN
- 44571 exploit, x_refsource_EXPLOIT-DB
- [debian-lts-announce] 20180210 [SECURITY] [DLA 1274-1] exim4 security update mailing-list, x_refsource_MLIST
- https://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1 x_refsource_CONFIRM
- https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/ x_refsource_MISC
- 103049 vdb-entry, x_refsource_BID
- 45671 exploit, x_refsource_EXPLOIT-DB
- http://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789 government-resource
When was it published, and where is the official record?
- Reserved
- February 6, 2018
- Published
- February 8, 2018, 23:00 UTC
- CVE record updated
- October 21, 2025, 23:45 UTC by mitre
- NVD
- Analyzed, last modified June 17, 2026, 02:02 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:35 UTC; KEV December 3, 2026, 07:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Exim?
- Sep 27, 2019CVE-2019-16928 Exim: out-of-bounds write (memory corruption) exploited
- Jun 5, 2019CVE-2019-10149 exim: OS command injection exploited
- Dec 14, 2010CVE-2010-4345 Exim: command injection exploited
- Dec 14, 2010CVE-2010-4344 Exim: out-of-bounds write (memory corruption) exploited
- Dec 1, 2026CVE-2026-141382 Exim: out-of-bounds write (memory corruption)
- Nov 27, 2026CVE-2026-137702 Exim: out-of-bounds write (memory corruption)
- Sep 19, 2026CVE-2026-94057 Exim: improper Neutralization of CRLF Sequences
- Sep 19, 2026CVE-2026-94056 Exim: use of uninitialized resource
Questions about CVE-2018-6789
Is CVE-2018-6789 exploited in the wild?
Yes. CISA added CVE-2018-6789 to its Known Exploited Vulnerabilities catalog on November 3, 2021 and set federal agencies a due date of May 3, 2022. CISA lists it as used in ransomware campaigns. FIRST's EPSS gives it a 82.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Exim are affected by CVE-2018-6789?
exim before 4.90.1, debian linux 7.0, debian linux 8.0, debian linux 9.0, ubuntu linux 14.04, ubuntu linux 16.04 and 1 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-6789?
4.90.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-6789?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2018-6789?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.