Vulnerabilities

Vulnerability · CVE-2018-6789

Exim Buffer Overflow Vulnerability

Published Feb 8, 2018 · catalog updated Jun 16, 2026 · Exim Exim

Patch now

CVE-2018-6789 is in the CISA known-exploited catalog, due May 3, 2022. Confirm Exim Exim against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
Critical9.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
82.14%
Remediation
Remediation guidance
Affected products
cpe canonical/ubuntu linux · cpe debian/debian linux · cpe exim/exim · vendor Exim Exim

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe canonical/ubuntu linux14.04
  • cpe canonical/ubuntu linux16.04
  • cpe canonical/ubuntu linux17.10
  • cpe debian/debian linux7.0
  • cpe debian/debian linux8.0
  • cpe debian/debian linux9.0
  • cpe exim/eximversion unspecified
  • vendor Exim Eximversion unspecified

How to fix CVE-2018-6789

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2018-6789 is in the CISA known-exploited catalog, due May 3, 2022. Confirm Exim Exim against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Compare what you have installed with canonical/ubuntu linux 14.04; canonical/ubuntu linux 16.04; canonical/ubuntu linux 17.10; debian/debian linux 7.0. Apply updates per vendor instructions.

What should an analyst verify?

CWE-119: Buffer Overflow; CWE-120: Classic Buffer Overflow. EPSS 82.14%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Feb 8, 2018 · Catalog

    Detected

    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.

  2. Nov 3, 2021 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. May 3, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    Updated

    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.

Sources

  • CISA KEVConfirmed exploitationCVE-2018-6789

    Exim contains a buffer overflow vulnerability in the base64d function part of the SMTP listener that may allow for remote code execution.

    cisa.gov
  • CVE.orgVulnerability recordCVE-2018-6789

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2018-6789

    30-day exploitation probability 82.1%

    first.org
  • Exploit DatabasePublic exploit reference44571

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • Exploit DatabasePublic exploit reference45671

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • NIST NVDVulnerability recordCVE-2018-6789

    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.

    nvd.nist.gov
  • Packet Storm SecurityCited referencehttp://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html

    Packet Storm link already published on the finding.

    packetstormsecurity.com
  • VulnCheck KEVConfirmed exploitationCVE-2018-6789

    Exim contains a buffer overflow vulnerability in the base64d function part of the SMTP listener that may allow for remote code execution.

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.