CVE-2018-6789
CRITICAL 9.8CVSS 3.1known exploitedransomwareExim Buffer Overflow Vulnerability
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.
- Published
- 8 Feb 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-119CWE-120
- Sources
- NVDJSONCISA KEVJSON
In CISA's Known Exploited Vulnerabilities catalog since 3 Nov 2021; US federal agencies must fix it by 3 May 2022.
Apply updates per vendor instructions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | exim | eximcpe:2.3:a:exim:exim:*:*:*:*:*:*:*:* |
< 4.90.1 | 4.90.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* |
= 17.10 |
References
- http://openwall.com/lists/oss-security/2018/02/10/2 · Mailing List, Third Party Advisory
- http://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html · Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2018/02/07/2 · Mailing List, Third Party Advisory
- http://www.securityfocus.com/bid/103049 · Broken Link, Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1040461 · Broken Link, Third Party Advisory, VDB Entry
- https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/ · Exploit, Third Party Advisory
- https://exim.org/static/doc/security/CVE-2018-6789.txt · Vendor Advisory
- https://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1 · Patch
- https://lists.debian.org/debian-lts-announce/2018/02/msg00009.html · Mailing List, Third Party Advisory
- https://usn.ubuntu.com/3565-1/ · Third Party Advisory
- https://www.debian.org/security/2018/dsa-4110 · Mailing List, Third Party Advisory
- https://www.exploit-db.com/exploits/44571/ · Exploit, Third Party Advisory, VDB Entry
- https://www.exploit-db.com/exploits/45671/ · Exploit, Third Party Advisory, VDB Entry
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789 · US Government Resource
- https://nvd.nist.gov/vuln/detail/CVE-2018-6789
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 8 Feb 2018)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 3 Nov 2021)
- 3 Nov 2021 00:00 UTC · Listed as known exploited