--- licence_title: Creative Commons Attribution 4.0 International (CC-BY 4.0) licence_link: https://creativecommons.org/licenses/by/4.0/ licence_restrictions: https://cert.europa.eu/legal-notice licence_author: CERT-EU, The Cybersecurity Service for the European Union institutions, bodies, offices and agencies title: 'Remote Code Execution Vulnerability in Exim' version: '1.0' number: '2018-006' date: 'March 07, 2018' --- _History:_ * _07/03/2018 --- v1.0: Initial publication_ # Summary On February 05, 2018, __Devcore Security Consulting__ discovered a buffer overflow vulnerability in the base64 decode function of __Exim__ message transfer agent [1]. On March 06, 2018, Exim released a security advisory about the issue [2], confirming potential remote code execution that could be triggered by sending a handcrafted message. The issue has been fixed in version 4.90.1 of Exim and no alternative mitigation is known. # Technical Details The vulnerability received the following CVE number: CVE-2018-6789 [3]. The vulnerability is due to a calculation mistake of decode buffer length in the base64 decode function of Exim. It can be exploited by sending an invalid base64 string to the function. If the string is larger than the buffer, Exim will consume more bytes than the allocated buffer, allowing overwrites of critical data. As the bytes are controllable, the flaw may potentially be exploited for remote code execution. # Products Affected All versions of __Exim before 4.90.1__ are affected by the vulnerability. # Recommendations As there is no mitigation known for this vulnerability, is it highly recommended to update Exim to version 4.90.1. # References [1] [2] [3]