9.8

CVE-2018-6789: Exim Buffer Overflow Vulnerability

CVSS: 9.8v3.1CriticalKEVRansomwareAnalyzed
AliasesUBUNTU-CVE-2018-6789USN-3565-1DEBIAN-CVE-2018-6789
Published 08-02-2018Last modified 21-10-2025

Vulnerability summary

CVE-2018-6789 is a critical (CVSS 9.8) Classic Buffer Overflow vulnerability in Exim. It is known to be exploited: CISA lists it, first on 03-11-2021. It has been used in ransomware campaigns. EPSS estimates a 82.14% chance of exploitation in the next 30 days, higher than 99.6% of scored vulnerabilities. 4 public exploits are recorded.

Overall risk
90/100
0100
Critical · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
82.14%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareKnown useFlagged by CISA
Public exploits4reference, exploit-database

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 08-02-2018
    PublishedVulnerability first disclosed.
  2. 03-11-2021
    Added to CISA KEVExim Buffer Overflow Vulnerability
  3. 03-05-2022
    CISA remediation dueApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 4 sources · 3 versions

EPSS trend

Probability

82.14%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 82.14% on 18-09-2026

18-09-202618-10-2026
EPSS score
82.14%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
03-11-2021
Federal due date
03-05-2022
Ransomware

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2018-6789

Public exploits

4 found
  • referenceUnverified

    Exploit Reference (devco.re)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • exploit-databaseremotelinuxUnverified

    exim 4.90 - Remote Code Execution

    Maturity: poc

Show all 4 exploits
  • exploit-databaseremotelinuxUnverified

    Exim < 4.90.1 - 'base64d' Remote Code Execution

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Debian2 products
  • exim4< 4.90.1-1 | < 4.84.2-2+deb8u5 | < 4.89-2+deb9u3 | < 4.80-7+deb7u6
  • debian_linuxEOL7.0 | 8.0 | 9.0
Canonical1 product
Exim1 product
Ubuntu1 product
  • exim4< 4.82-3ubuntu2.4 | < 4.86.2-2ubuntu2.3

4 vendors · 5 products

References

19 links
Show all 19 references