#VU18686 OS Command Injection in Exim


Published: 2020-03-18 | Updated: 2021-07-29

Vulnerability identifier: #VU18686

Vulnerability risk: High

CVSSv3.1: 9.4 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2019-10149

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Exim
Server applications / Mail servers

Vendor: Exim

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to insufficient validation of email address within the deliver_message() function in /src/deliver.c. A remote unauthenticated attacker can send an email containing a specially crafted email address and execute arbitrary OS commands on the target system via execv() call with superuser privileges.

This vulnerability can be also exploited by authenticated local users to escalate privileges on the system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Exim: 4.87 - 4.91


External links
http://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10149
http://www.exim.org/static/doc/security/CVE-2019-10149.txt
http://www.qualys.com/2019/06/05/cve-2019-10149/return-wizard-rce-exim-abridged.txt


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability