CVE-2018-6789
CVE-2018-6789 — Exim Buffer Overflow Vulnerability
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.
Published Updated Sources: NVD, CISA, FIRST EPSS, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Confirmed
CISA KEV, listed Nov 3, 2021
EPSS
82%
ahead of 99.8% of scored CVEs
CVSS base
9.8
critical · 2 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
Active
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade Exim to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
CISA required action
Apply updates per vendor instructions.
Federal deadline May 3, 2022 — passed 1,676 days ago
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Treat as emergency remediation because CISA KEV status is present.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Exim | exim | n/a | Vulnerable |
| Canonical | ubuntu linux | 14.04 | Vulnerable |
| Debian | debian linux | 7.0 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | NVD, CNA |
| 7.5 | CVSS 2.0 | high | 10 | 6.4 | NVD |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
- Modify Memory
- Execute Unauthorized Code or Commands
- DoS: Crash, Exit, or Restart
- DoS: Resource Consumption (CPU)
Mitigation: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer
- Execute Unauthorized Code or Commands
- Modify Memory
- Read Memory
- DoS: Crash, Exit, or Restart
Mitigation: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
Weakness & attack patterns
- CWE-120Classic Buffer Overflow
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
CISA KEV details
CISA lists a CVE here once it has evidence of exploitation against real targets.
Listed
Nov 3, 2021
Federal deadline
May 3, 2022
passed 1,676 days ago
Ransomware use
Known
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
15
1 of the 5 sampled are weaponized
Exploit entries
13
Exploit-DB and CTI exploit indexes
Social mentions
Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.
Mav’s Vuln Deep Dive, Day 1/30 Can you find the bug? you, the attacker, controls b64_data content (and length) this is CVE-2018-6789. preauth rce on exim, which runs 60% of the internet’s mail servers, installed on every debian+ubuntu. vuln hint, answer, and deep dive in🧵 https://t.co/uyl92Vuuhy
@MavLevin· Dec 15, 2025
this has been day 1/30 of vuln deep dives. lmk what you think! vuln deep dive day 2 is tomorrow. full CVE-2018-6789 details in og writeup by the finder, Meh: https://t.co/7OoYj7eysx
@MavLevin· Dec 15, 2025
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Exim, Ubuntu Linux, Debian Linux.
- Monitor for scanner or exploit-pattern traffic after 28 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- ip185.86.78.6182
Public Attackers · Nov 11, 2026
- ip188.143.232.129
Zonefiles · Aug 26, 2020
- ip178.128.21.5756
Zonefiles · Sep 28, 2020
- ip165.232.102.20051
Blocklist.de-Firehol-iMAP · Sep 25, 2024
- ip207.180.202.21491
AbuseIPDB Hourly Update · Oct 20, 2026
5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
- 2025
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on Mitre.
Jul 28, 2025 · SOCRadar CTI
Bulletin released on NIST.
Jan 28, 2025 · SOCRadar CTI
- 2024
Bulletin released on NIST.
Jul 25, 2024 · SOCRadar CTI
- 2023
CVE is exploited. "Ostorlab/KEV"
Dec 26, 2023 · SOCRadar CTI
CVE is exploited. "0xT11/CVE-POC"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "ARPSyndicate/cvemon"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "Ostorlab/known_exploited_vulnerbilities_detectors"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "c0llision/exim-vuln-poc"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "hectorgie/PoC-in-GitHub"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "martinclauss/exim-rce-cve-2018-6789"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "qazbnm456/awesome-cve-poc"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "synacktiv/Exim-CVE-2018-6789"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "xbl3/awesome-cve-poc_qazbnm456"
Dec 15, 2023 · SOCRadar CTI
- 2021
Added to CISA KEV catalog
Nov 3, 2021 · CISA
- 2018
Initial · CVE published
Feb 8, 2018 · NVD
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 5×SvrsAug 10, 2023 – Jan 7, 2026 · SOCRadar CTI
- 4×ModifiedJul 25, 2024 – Feb 7, 2025 · SOCRadar CTI
- 2×TweetsFeb 7, 2023 – Dec 16, 2025 · SOCRadar CTI
- 2×Github ReposApr 21, 2023 – Aug 5, 2023 · SOCRadar CTI
References
15 on the record
- openwall.com/lists/oss-security/2018/02/10/2
Mailing List, Third Party Advisory, NIST
- packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html
Exploit, Third Party Advisory, VDB Entry, NIST
- www.openwall.com/lists/oss-security/2018/02/07/2
Mailing List, Third Party Advisory, NIST, Mitre
- www.securityfocus.com/bid/103049
Broken Link, Third Party Advisory, VDB Entry
- www.securitytracker.com/id/1040461
Broken Link, Third Party Advisory, VDB Entry
- devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/
Exploit, Third Party Advisory, NIST
- exim.org/static/doc/security/CVE-2018-6789.txt
Vendor Advisory, NIST
- git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1
Patch, NIST
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-32433 Erlang Erlang/OTP SSH Server Missing Authentication for Critical Function VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2022-0543 Debian-specific Redis Server Lua Sandbox Escape VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2013-0422 Oracle JRE Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2024-9680 Mozilla Firefox Use-After-Free VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2021-44026 Roundcube Webmail SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Eximevery CVE for this vendor
- Canonicalevery CVE for this vendor
- Debianevery CVE for this vendor
- eximevery page on this product
- ubuntu linuxevery page on this product
- November 2021what else CISA listed
- Memory Corruptionsame class
- CWE-120other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2018-6789 is Exim Buffer Overflow Vulnerability, a critical vulnerability affecting Exim, Ubuntu Linux, Debian Linux from Exim, Canonical, Debian. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 28 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 82% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.