Skip to content
On CISA KEVCritical

CVE-2018-6789Exim Buffer Overflow

By sending a handcrafted message, a buffer overflow may happen.

Published Feb 8, 2018 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2018-6789, CLEANSTART-2025-AY16629, DEBIAN-CVE-2018-6789, DLA-1274-1, DSA-4110-1, UBUNTU-CVE-2018-6789, USN-3565-1

Key Facts

Patch immediately
  • CVE-2018-6789 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Exim, Ubuntu Linux (Canonical), Debian Linux and 11 more products.
  • It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Feb 25, 2020 and is known to be used in ransomware campaigns. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 82% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Exim 4.86.2-20.1, Exim 4.90.1-1, Exim 4.90.1-2.14.amzn1.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

82%

Higher than 99.7% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

82/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Nov 3, 2021

1364 days after publication

Federal due date

May 3, 2022

Overdue

Ransomware use

Known

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

5

Proof-of-concept links

In-the-wild evidence

8

Reports of active use

Required action (CISA): Apply updates per vendor instructions.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CISA KEVNov 3, 2021May 3, 2022Known
Industry KEV feedFeb 25, 2020May 3, 2022Known
CIRCL KEVNov 3, 2021May 3, 2022Known
ENISA EUVDNov 3, 2021n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

71 affected entries in total
ProductAffected versionsFixed in
EximEximSee advisory4.90.1
Ubuntu LinuxCanonical14.04, 16.04, 17.10n/a
Debian LinuxDebian7.0, 8.0, 9.0n/a
exim4debianSee advisory4.90.1-1
exim-greylistamazonSee advisory4.90.1-2.14.amzn1
9 more affected products in the full CVE brief

Patched Releases

Exim

4.86.2-20.1, 4.90.1-1, 4.90.1-2.14.amzn1, 4.90.1-r0, 4.94.2-4.2, 4.94.2-bp151.2.4.1, 4.94.2-bp152.6.4.1, 4.94.2-lp152.8.3.1, 4.90.1

exim-greylist

4.90.1-2.14.amzn1

exim-mon

4.90.1-2.14.amzn1

exim-mysql

4.90.1-2.14.amzn1

exim-pgsql

4.90.1-2.14.amzn1

exim4

4.80-7+deb7u6, 4.82-3ubuntu2.4, 4.84.2-2+deb8u5, 4.86.2-2ubuntu2.3, 4.89-2+deb9u3, 4.90.1-1

eximon

4.86.2-20.1, 4.94.2-4.2, 4.94.2-bp151.2.4.1, 4.94.2-bp152.6.4.1, 4.94.2-lp152.8.3.1

eximstats-html

4.86.2-20.1, 4.94.2-4.2, 4.94.2-bp151.2.4.1, 4.94.2-bp152.6.4.1, 4.94.2-lp152.8.3.1

libspf2

1.2.10-bp152.5.1

libspf2-2

1.2.10-bp151.4.1, 1.2.10-bp152.5.1

libspf2-devel

1.2.10-bp151.4.1, 1.2.10-bp152.5.1

libspf2-tools

1.2.10-bp151.4.1, 1.2.10-bp152.5.1

Timeline

  1. Publicly disclosed

    Feb 8, 2018

  2. Added to Industry KEV feed

    Feb 25, 2020

  3. Added to CISA KEV

    Nov 3, 2021

  4. Added to CIRCL KEV

    Nov 3, 2021

  5. Added to ENISA EUVD

    Nov 3, 2021

  6. Last updated

    Nov 3, 2026

Weakness Type

  • CWE-120 Buffer Copy without Checking Size of Input

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2018-6789 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.