ZeroHour

CVE-2018-6789

KEV ransomware PoC ×4mass

Pre-auth Buffer Overflow RCE in Exim SMTP Listener

CISA: Exim Buffer Overflow Vulnerability

CVSS 3.1
9.8 critical
EPSS
82%p100
Published
()
KEV added
AI analysis

CVE-2018-6789 is an off-by-one buffer overflow (CWE-120) in the base64d decoding function of Exim's SMTP listener, affecting Exim versions before 4.90.1. A remote, unauthenticated attacker triggers it by sending a handcrafted message to the SMTP listener, causing the overflow during base64 decoding. Successful exploitation yields arbitrary code execution on the mail server with the privileges of the Exim daemon. Affected operators include anyone running a vulnerable Exim mail transfer agent, including Exim as shipped in Debian and Ubuntu; Exim powers roughly half of internet-facing mail servers, with on the order of 400,000 servers exposed at disclosure. Exploitation is confirmed in the wild: the flaw is in CISA's Known Exploited Vulnerabilities catalog with known ransomware use, multiple public PoCs/exploits are available, and it appears in the NSA's list of top flaws abused by Chinese state-sponsored hackers.

What to do: Upgrade Exim to 4.90.1 or later, or apply the patched Exim package from Debian's and Ubuntu's security repositories on affected distributions. Inventory internet-facing SMTP services (ports 25/465/587) for vulnerable Exim versions, review mail logs for signs of exploitation, and prioritize patching given the flaw's CISA KEV listing and known ransomware use.

Affected
eximbefore 4.90.1
debian linuxreleases shipping Exim prior to 4.90.1 (distro-specific package versions not specified in source data)
canonical ubuntu linuxreleases shipping Exim prior to 4.90.1 (distro-specific package versions not specified in source data)
Estimated exposure
mass≈400,000+ internet-exposed Exim mail servers; Exim runs on roughly half of internet-facing mail servers — Public internet-scan estimates published around disclosure reported about 400,000 Exim servers exposed to the internet, and related reporting indicates Exim serves roughly 50-60% of internet email servers, implying mass exposure.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
Exim Exim
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Known
Vendors
eximdebiancanonical
Products
exim, debian linux, ubuntu linux
Weakness
CWE-120
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news