CVE-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.
02 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.
03 Exploitation and scoring
- Exploitation
- Exploited in the wild. Listed in the CISA Known Exploited Vulnerabilities catalog on 2021-11-03. Federal remediation due 2022-05-03. Known ransomware campaign use: reported by CISA.
- SSVC decision
- ExploitationactiveCISA reports credible evidence of active exploitation.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 82.13% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 99.6% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Analyzed. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Critical. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2018-02-08 23:00Z8 YR AGO
- Last updated
- 2025-10-21 23:45Z1 YR AGO
- Reserved
- 2018-02-06
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Critical (CVSS 9.8)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')Base
- Data version
- 5.1
- Document digest
- bf7469a38508dc6bdf0e0a1c9da031144b719ad319d2031a8c1daffc9dda8146
05 Affected products
06 References
- exim.orghttps://exim.org/static/doc/security/CVE-2018-6789.txt
- www.openwall.com[oss-security] 20180207 CVE-2018-6789 Exim 4.90 and earlier: buffer overflowhttp://www.openwall.com/lists/oss-security/2018/02/07/2
- usn.ubuntu.comUSN-3565-1https://usn.ubuntu.com/3565-1/
- openwall.comhttp://openwall.com/lists/oss-security/2018/02/10/2
- www.securitytracker.com1040461http://www.securitytracker.com/id/1040461
- www.debian.orgDSA-4110https://www.debian.org/security/2018/dsa-4110
- www.exploit-db.com44571https://www.exploit-db.com/exploits/44571/
- lists.debian.org[debian-lts-announce] 20180210 [SECURITY] [DLA 1274-1] exim4 security updatehttps://lists.debian.org/debian-lts-announce/2018/02/msg00009.html
- git.exim.orghttps://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1
- devco.rehttps://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/
- www.securityfocus.com103049http://www.securityfocus.com/bid/103049
- www.exploit-db.com45671https://www.exploit-db.com/exploits/45671/
- packetstormsecurity.comhttp://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html
- www.cisa.govhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789
07 Fixed in
Arch Linux
- exim Fixed in 4.90.1-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
Debian 12
- exim4 Fixed in 4.90.1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- exim4 Fixed in 4.90.1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- exim4 Fixed in 4.90.1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- exim4 Fixed in 4.82-3ubuntu2.4
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- exim4 Fixed in 4.86.2-2ubuntu2.3
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.