Actively exploited · Published Feb 8, 2018 · Assigned by mitre
CVE-2018-6789
Critical 9.8 Exploited Ransomware
In plain English
A critical-severity buffer overflow in Exim from Exim. Attackers are actively exploiting it in the wild (listed by CISA on November 3, 2021). It has been used in ransomware campaigns. The chance it is exploited in the next 30 days is estimated at 82.1% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by May 3, 2022.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | exim | 4.90.1-r0 | ALPINE-CVE-2018-6789 |
| Alpine:v3.21 | exim | 4.90.1-r0 | ALPINE-CVE-2018-6789 |
| Alpine:v3.22 | exim | 4.90.1-r0 | ALPINE-CVE-2018-6789 |
| Alpine:v3.23 | exim | 4.90.1-r0 | ALPINE-CVE-2018-6789 |
| Alpine:v3.24 | exim | 4.90.1-r0 | ALPINE-CVE-2018-6789 |
| Debian:12 | exim4 | 4.90.1-1 | DEBIAN-CVE-2018-6789 |
| Debian:13 | exim4 | 4.90.1-1 | DEBIAN-CVE-2018-6789 |
| Debian:14 | exim4 | 4.90.1-1 | DEBIAN-CVE-2018-6789 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://exim.org/static/doc/security/CVE-2018-6789.txt x_refsource_CONFIRM
- [oss-security] 20180207 CVE-2018-6789 Exim 4.90 and earlier: buffer overflow mailing-list, x_refsource_MLIST
- USN-3565-1 vendor-advisory, x_refsource_UBUNTU
- http://openwall.com/lists/oss-security/2018/02/10/2 x_refsource_CONFIRM
- 1040461 vdb-entry, x_refsource_SECTRACK
- DSA-4110 vendor-advisory, x_refsource_DEBIAN
- 44571 exploit, x_refsource_EXPLOIT-DB
- [debian-lts-announce] 20180210 [SECURITY] [DLA 1274-1] exim4 security update mailing-list, x_refsource_MLIST
- https://git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1 x_refsource_CONFIRM
- https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/ x_refsource_MISC
- 103049 vdb-entry, x_refsource_BID
- 45671 exploit, x_refsource_EXPLOIT-DB
- http://packetstormsecurity.com/files/162959/Exim-base64d-Buffer-Overflow.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789 government-resource