cve.bz

CVE-2018-6789 Exim Buffer Overflow Vulnerability

9.8 criticalKEVExploitEPSS 82%Fix available

Critical (9.8) in Exim Exim. In CISA KEV since 2021-11-03, with known ransomware use. EPSS 82% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
82% (unchanged from 82% a week ago; 82% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-11-03, due 2022-05-03, known ransomware use
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-02-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-6789 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6789?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6789?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6789 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
exim:eximbefore 4.90.1
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7exim44.80-7+deb7u6DLA-1274-1
Debian8exim44.84.2-2+deb8u5DSA-4110-1
Debian9exim44.89-2+deb9u3DSA-4110-1
Debian12, 13, 14exim44.90.1-1DEBIAN-CVE-2018-6789
Ubuntu14.04:LTSexim44.82-3ubuntu2.4UBUNTU-CVE-2018-6789 USN-3565-1
Ubuntu16.04:LTSexim44.86.2-2ubuntu2.3UBUNTU-CVE-2018-6789 USN-3565-1
SUSEPackage Hub 15 SP1exim4.94.2-bp151.2.4.1openSUSE-SU-2021:0753-1
SUSEPackage Hub 15 SP1libspf21.2.10-bp151.4.1openSUSE-SU-2021:0753-1
SUSEPackage Hub 15 SP2exim4.94.2-bp152.6.4.1openSUSE-SU-2021:0754-1
SUSEPackage Hub 15 SP2libspf21.2.10-bp152.5.1openSUSE-SU-2021:0754-1
openSUSELeap 15.2exim4.94.2-lp152.8.3.1openSUSE-SU-2021:0677-1
openSUSETumbleweedexim4.94.2-4.2openSUSE-SU-2024:10746-1
Alpinev3.7, v3.8, v3.9 and 15 moreexim4.90.1-r0ALPINE-CVE-2018-6789

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This issue affects the versions of Exim as shipped in Red Hat Enterprise Linux 5. Red Hat Enterprise Linux 5 is already in the Extended Life Phase of its life cycle and Exim is not on the list of components supported via Red Hat Enterprise Linux 5 Extended Life-cycle Support (ELS) add-on, therefore there's currently no plan to address this issue in Red Hat Enterprise Linux 5. For more information about Red Hat Enterprise Linux 5 life cycle and ELS add-on scope of support, see:

https://access.redhat.com/support/policy/updates/errata/#Extended_Life_Cycle_Phase

https://access.redhat.com/articles/2901071

The Exim mail server is not shipped in Red Hat Enterprise Linux 6 and 7.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5eximWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6789.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET EXPLOIT Exim Internet Mailer Remote Code Execution sid 2025793
  • Emerging Threats Open ET EXPLOIT [PT Security] Exim <4.90.1 Base64 Overflow RCE (CVE-2018-6789) sid 2025427

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON