OS Command Injection in Exim - CVE-2019-10149

 

OS Command Injection in Exim - CVE-2019-10149

Published: June 5, 2019 / Updated: February 20, 2022


Vulnerability identifier: #VU18686
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-10149
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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.


Affected software

Exim
Arch Linux
Gentoo Linux
Opensuse
exim4 (Ubuntu package)
exim (Alpine package)
exim4 (Debian package)

How to mitigate CVE-2019-10149

Install updates from vendor's website.

Exim - update to 4.92
exim4 (Ubuntu package) - addressed in versions 4.90.1-1ubuntu1.2, 4.91-6ubuntu1.1
exim (Alpine package) - update to 4.91-r2
exim4 (Debian package) - update to 4.89-2+deb9u4

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins