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.
CVE-2018-6789
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2021-11-03), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EG Risk
- 99(Act)EG Risk 99/100SSVC: Act
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation100% × 40%Automatability100% × 15%Action: Fix now — active exploitation, automatable, high impact. - EPSS PROB
- 82%
- EPSS %ILE
- 100%
- KEV
- ⚠ Exploited
Published
February 8, 2018
Last Modified
November 7, 2025
Advisory Details (9)
Auto-updated Jun 1, 2026[SECURITY] [DLA 1274-1] exim4 security update
https://lists.debian.org/debian-lts-announce/2018/02/msg00009.htmlexim - Exim Forgejo
https://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1Exim Off-by-one RCE: Exploiting CVE-2018-6789 with Fully Mitigations Bypassing | DEVCORE
https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/oss-security - CVE-2018-6789 Exim 4.90 and earlier: buffer overflow
http://www.openwall.com/lists/oss-security/2018/02/07/2oss-security - Exim 4.90.1 released. (Was: CVE-2018-6789 Exim 4.90 and earlier: buffer overflow)
http://openwall.com/lists/oss-security/2018/02/10/2Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | eximon4 (4.86.2-2ubuntu2.3) @ xenial | 2026-07-26 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 50× in last 7d / 322× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 673 total refreshes for this CVE.
- 2026-07-28 00:23 UTCGHSA enrichment
- 2026-07-27 20:36 UTCGHSA enrichment
- 2026-07-27 19:24 UTCCISA KEV update
- 2026-07-27 17:17 UTCCISA KEV update
- 2026-07-27 16:47 UTCGHSA enrichment
- 2026-07-27 13:00 UTCGHSA enrichment
- 2026-07-27 09:13 UTCGHSA enrichment
- 2026-07-27 05:26 UTCGHSA enrichment
- 2026-07-27 01:37 UTCGHSA enrichment
- 2026-07-26 21:50 UTCVendor advisory
- 2026-07-26 21:50 UTCGHSA enrichment
- 2026-07-26 18:02 UTCEG score recompute
- 2026-07-26 18:02 UTCVendor advisory
- 2026-07-26 18:02 UTCGHSA enrichment
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-26 14:13 UTCEG score recompute
- 2026-07-26 14:13 UTCVendor advisory
- 2026-07-26 14:12 UTCGHSA enrichment
- 2026-07-26 10:25 UTCVendor advisory
- 2026-07-26 10:25 UTCGHSA enrichment
- 2026-07-26 06:24 UTCVendor advisory
- 2026-07-26 06:24 UTCGHSA enrichment
- 2026-07-26 02:29 UTCEG score recompute
- 2026-07-26 02:29 UTCVendor advisory
- 2026-07-26 02:28 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-25 14:14 UTCEPSS rescore
- 2026-07-25 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 01:37 UTCEG score recompute
- 2026-07-23 00:07 UTCEG score recompute
- 2026-07-23 00:07 UTCGHSA enrichment
- 2026-07-22 22:17 UTCEG score recompute
- 2026-07-22 20:18 UTCVendor advisory
- 2026-07-22 20:18 UTCGHSA enrichment
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-22 16:30 UTCEG score recompute
- 2026-07-22 16:29 UTCGHSA enrichment
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-22 12:40 UTCGHSA enrichment
- 2026-07-22 08:52 UTCGHSA enrichment
- 2026-07-22 05:04 UTCGHSA enrichment
- 2026-07-22 00:45 UTCGHSA enrichment
- 2026-07-21 18:57 UTCGHSA enrichment
- 2026-07-21 15:07 UTCGHSA enrichment
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-21 11:18 UTCGHSA enrichment
- 2026-07-21 07:28 UTCGHSA enrichment
- 2026-07-21 03:41 UTCVendor advisory
- 2026-07-21 03:41 UTCGHSA enrichment
- 2026-07-20 23:53 UTCVendor advisory
- 2026-07-20 23:53 UTCGHSA enrichment
- 2026-07-20 20:06 UTCEG score recompute
- 2026-07-20 20:06 UTCVendor advisory
- 2026-07-20 20:06 UTCGHSA enrichment
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 16:18 UTCGHSA enrichment
- 2026-07-20 12:30 UTCGHSA enrichment
- 2026-07-20 08:41 UTCGHSA enrichment
- 2026-07-20 04:53 UTCVendor advisory
- 2026-07-20 04:53 UTCGHSA enrichment
- 2026-07-20 01:05 UTCVendor advisory
- 2026-07-19 21:17 UTCVendor advisory
- 2026-07-19 21:17 UTCGHSA enrichment
- 2026-07-19 17:29 UTCVendor advisory
- 2026-07-19 17:29 UTCGHSA enrichment
- 2026-07-19 13:41 UTCVendor advisory
- 2026-07-19 13:41 UTCGHSA enrichment
- 2026-07-19 09:54 UTCVendor advisory
- 2026-07-19 09:54 UTCGHSA enrichment
- 2026-07-19 06:06 UTCVendor advisory
- 2026-07-19 06:06 UTCGHSA enrichment
- 2026-07-19 02:19 UTCGHSA enrichment
- 2026-07-18 22:30 UTCVendor advisory
- 2026-07-18 22:30 UTCGHSA enrichment
- 2026-07-18 18:42 UTCGHSA enrichment
- 2026-07-18 14:54 UTCVendor advisory
- 2026-07-18 14:54 UTCGHSA enrichment
- 2026-07-18 11:06 UTCVendor advisory
- 2026-07-18 11:06 UTCGHSA enrichment
- 2026-07-18 07:19 UTCVendor advisory
- 2026-07-18 07:19 UTCGHSA enrichment
- 2026-07-18 03:30 UTCVendor advisory
- 2026-07-18 03:30 UTCGHSA enrichment
- 2026-07-17 23:42 UTCVendor advisory
- 2026-07-17 23:42 UTCGHSA enrichment
- 2026-07-17 19:54 UTCVendor advisory
- 2026-07-17 19:54 UTCGHSA enrichment
- 2026-07-17 16:06 UTCGHSA enrichment
- 2026-07-17 12:18 UTCGHSA enrichment
- 2026-07-17 08:30 UTCEG score recompute
- 2026-07-17 08:30 UTCGHSA enrichment
- 2026-07-17 04:41 UTCGHSA enrichment
- 2026-07-17 00:52 UTCGHSA enrichment
- 2026-07-16 21:04 UTCGHSA enrichment
- 2026-07-16 17:16 UTCGHSA enrichment
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
Publicly available exploits
(6 references)Working exploit code is in the public domain (4 GitHub PoCs) (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCthistehneisen/CVE-2018-6789-Python3First seen Aug 5, 2023
Exim < 4.90.1 RCE Vulnerability remake for Python3 with arguments passed from CLI
Open source ↗ - GitHub PoCmartinclauss/exim-rce-cve-2018-6789First seen Mar 2, 2020
This repository provides a learning environment to understand how an Exim RCE exploit for CVE-2018-6789 works.
Open source ↗ - GitHub PoCsynacktiv/Exim-CVE-2018-6789First seen Oct 10, 2019
PoC materials to exploit CVE-2018-6789
Open source ↗ - Open source ↗GitHub PoCberaphin/CVE-2018-6789First seen Nov 8, 2018
- Exploit-DBEDB-45671First seen Oct 24, 2018
exim 4.90 - Remote Code Execution
Open source ↗ - Exploit-DBEDB-44571First seen May 2, 2018
Exim < 4.90.1 - 'base64d' Remote Code Execution
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownubuntu
- CVE-2004-0989EG 10.0EPSS p97HIGH
- CVE-2004-0990EG 10.0EPSS p98HIGH
- CVE-2004-1010EG 10.0EPSS p95HIGH
- CVE-2004-0941EG 10.0EPSS p95HIGH
- CVE-2004-0981EG 10.0EPSS p92HIGH
- CVE-2004-0882EG 10.0EPSS p96HIGH
- CVE-2004-0888EG 10.0EPSS p95HIGH
- CVE-2004-1012EG 10.0EPSS p93HIGH
- CVE-2004-1013EG 10.0EPSS p92HIGH
- CVE-2004-1018EG 10.0EPSS p97HIGH
Same CWE
10 shownCWE-119 · CWE-120
- CVE-2003-0819EG 10.0EPSS p99HIGH
- CVE-2003-0903EG 10.0EPSS p98HIGH
- CVE-2002-1337EG 10.0EPSS p99HIGH
- CVE-2003-0095EG 10.0EPSS p96HIGH
- CVE-2002-2227EG 10.0HIGH
- CVE-2002-2248EG 10.0EPSS p92HIGH
- CVE-2002-2250EG 10.0EPSS p94HIGH
- CVE-2002-2251EG 10.0EPSS p93HIGH
- CVE-2002-2253EG 10.0EPSS p93HIGH
- CVE-2002-2257EG 10.0EPSS p92HIGH
Frequently asked(6)
What is CVE-2018-6789?
When was CVE-2018-6789 disclosed?
Is CVE-2018-6789 actively exploited?
What is the CVSS score of CVE-2018-6789?
Which products are affected by CVE-2018-6789?
How do I remediate CVE-2018-6789?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2018-6789
Is Your Infrastructure Affected by CVE-2018-6789?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.