BreachSpiderVerified, not vibes

CVE-2018-6789 in Canonical Ubuntu Linux and 2 more products

Known-exploited (CISA) since 2021-11-03 Critical 9.8 Public exploit reported

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.

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.19.8
EPSS82.1%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 14.04 16.04 17.10
Debian Debian Linux 7.0 8.0 9.0
Exim Exim < 4.90.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedYes added 2021-11-03
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2018-6789
BreachSpider IDBS-2018-GLOBAL-208462-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2018-02-08
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-120: Buffer Copy without Checking Size (Classic Buffer Overflow)

Program copies data to a buffer without verifying the source data fits within the destination.

Related attack patterns (CAPEC)

CAPEC-8 Buffer Overflow in an API Call via CWE-120

CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-120

CAPEC-10 Buffer Overflow via Environment Variables via CWE-120

CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-120

CAPEC-24 Filter Failure through Buffer Overflow via CWE-120

Show all 13

CAPEC-42 MIME Conversion via CWE-120

CAPEC-44 Overflow Binary Resource File via CWE-120

CAPEC-45 Buffer Overflow via Symbolic Links via CWE-120

CAPEC-46 Overflow Variables and Tags via CWE-120

CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-120

CAPEC-67 String Format Overflow in syslog() via CWE-120

CAPEC-92 Forced Integer Overflow via CWE-120

CAPEC-100 Overflow Buffers via CWE-120

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A critical buffer overflow vulnerability exists in the base64d function of the SMTP listener in Exim versions prior to 4.90.1, allowing remote attackers to execute arbitrary code. This vulnerability has a high exploitation likelihood due to the availability of public proof-of-concept (PoC) and active exploits. Immediate remediation is required to prevent potential compromise of affected systems.

The vulnerability can be exploited by sending a specially crafted message to the SMTP listener of an Exim server. The base64d function fails to properly handle the input, leading to a buffer overflow. This can result in remote code execution, allowing an attacker to gain control over the affected system.

Compensating controls AI-drafted, review before use

Implement network segmentation to isolate the SMTP service from critical OT networks. Apply strict firewall rules to limit access to the SMTP service only to trusted sources.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2018-6789?

A critical buffer overflow vulnerability exists in the base64d function of the SMTP listener in Exim versions prior to 4.90.1, allowing remote attackers to execute arbitrary code. This vulnerability has a high exploitation likelihood due to the availability of public proof-of-concept (PoC) and active exploits. Immediate remediation is required to prevent potential compromise of affected systems.

What is the CVSS score for CVE-2018-6789?

CVE-2018-6789 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 82.1%.

Is CVE-2018-6789 actively exploited?

Yes. CVE-2018-6789 is in the CISA known-exploited catalog (added 2021-11-03). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2018-6789?

Priority: IMMEDIATE. Advisory: https://exim.org/static/doc/security/CVE-2018-6789.txt PSIRT: [email protected]

What systems are affected by CVE-2018-6789?

CVE-2018-6789 affects Canonical Ubuntu Linux; Debian Debian Linux; Exim Exim.

What NERC-CIP standard applies to CVE-2018-6789?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows unauthorized access to the control center's electronic security perimeter, potentially compromising the integrity and availability of critical assets.

What IEC 62443 requirement maps to CVE-2018-6789?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that can be exploited to gain unauthorized access to the system, which is a key security requirement for protecting against remote attacks.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.