CVE-2019-10149

CRITICAL(9.8)KEVLikely Exploited

Exim Mail Transfer Agent (MTA) Improper Input Validation

Description

CVE-2019-10149 is a critical-severity OS command injection vulnerability in the Exim mail transfer agent (MTA), often referred to as "The Return of the WIZard." A flaw in the deliver_message() function in Exim versions 4.87 through 4.91 allows improper validation of recipient addresses, enabling remote command execution on the mail server. This command injection vulnerability in Exim MTA carries a maximum CVSS score of 9.8 and allows unauthenticated attackers to execute arbitrary commands with the privileges of the mail service. CISA has added CVE-2019-10149 to its Known Exploited Vulnerabilities catalog, and with an EPSS score of 93.93% (99.88th percentile), exploitation is near-certain.

KEV Information

Vendor
Exim
Product
Mail Transfer Agent (MTA)
Date Added
January 10, 2022
Due Date
July 10, 2022
Required Action
Apply updates per vendor instructions.

CVSS Score

Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in Calculator
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
3.9
Impact Score
5.9

CWEs

Affected Products

VendorProductVersion
eximexim>= 4.87, <= 4.91
canonicalubuntu linux18.04; 18.10
debiandebian linux9.0

Multiple CVSS Assessments

Source: [email protected](Primary)
9.8
CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Source: [email protected](Secondary)
9.0
CRITICAL

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References

Weakness Type

CWE-78: OS Command Injection

In the context of CVE-2019-10149, the Exim mail transfer agent fails to properly validate recipient addresses in the deliver_message() function, allowing attackers to inject operating system commands through specially crafted email recipient addresses. The injected commands execute with the privileges of the Exim process, which typically runs as a dedicated mail user and can escalate to root. OS command injection consistently ranks among the most dangerous software vulnerabilities due to the direct path to system compromise.

Learn more: CWE-78 — OS Command Injection

Impact Analysis

CVE-2019-10149 has a CVSS 3.1 score of 9.8 (CRITICAL), representing a maximum-severity threat to mail server infrastructure. The vulnerability is remotely exploitable over the network with low attack complexity, requires no authentication, and needs no user interaction, representing the worst-case exploitability scenario. Confidentiality (High): attackers can read all email data, configuration files, and potentially access sensitive credentials stored on the mail server. Integrity (High): arbitrary command execution allows attackers to modify email data, install backdoors, and alter system configurations. Availability (High): attackers can disrupt mail service operations, delete data, or use the compromised server as a pivot point for further attacks. The EPSS score of 93.93% (99.88th percentile) confirms near-certain exploitation activity, and Exim's widespread deployment as one of the most popular MTAs on the internet makes this vulnerability's impact particularly broad.

Exploit Maturity

CVE-2019-10149 has an extremely mature exploit landscape with multiple publicly available exploits. Public exploit code is available via Packet Storm Security for remote command execution, as well as local privilege escalation variants available at Packet Storm Security and additional exploit variants. Additional exploit details were published on the oss-security mailing list. CISA has confirmed active exploitation in the wild through its KEV catalog listing with a remediation deadline of 2022-07-10. The EPSS score of 93.93% (99.88th percentile) indicates near-certain exploitation activity, making this one of the most actively targeted MTA vulnerabilities.

Remediation

  1. Upgrade Exim immediately to version 4.92 or later as mandated by CISA KEV: Apply updates per vendor instructions. Version 4.92 addresses the command injection flaw in the deliver_message() function.
  2. Verify all Exim installations across the organization, specifically Exim versions 4.87 through 4.91 (inclusive), and ensure all are updated. Check Linux distributions that bundle Exim, including Debian 9.0, Ubuntu 18.04, and Ubuntu 18.10, for distribution-specific patches.
  3. If immediate patching is not possible, configure Exim to restrict which characters are permitted in recipient addresses and implement SMTP relay restrictions to limit exposure. Consider temporarily disabling remote delivery if the mail server is not critical.
  4. Review mail server logs for indicators of exploitation, including unusual recipient addresses containing shell metacharacters, unexpected process executions by the Exim user, and signs of privilege escalation. Check for evidence of backdoors or unauthorized system modifications.
  5. Implement defense-in-depth for mail infrastructure by running Exim with minimal privileges, deploying it in a chroot environment where possible, using network segmentation to isolate mail servers, and configuring intrusion detection systems to alert on command injection patterns in SMTP traffic.

Technical Details

CVE-2019-10149 is caused by CWE-78 (OS Command Injection) in the deliver_message() function located in /src/deliver.c of the Exim mail transfer agent. The function fails to properly validate recipient addresses, allowing attackers to inject shell commands through specially crafted email addresses that are processed during message delivery. The injected commands are executed by the operating system shell with the privileges of the Exim process. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects maximum exploitability: network-accessible over SMTP (port 25), low complexity, no authentication required, and no user interaction needed. The vulnerability affects Exim versions 4.87 through 4.91, a range spanning approximately three years of releases, and the attack can be triggered simply by sending an email with a malicious recipient address to the vulnerable server.

Frequently Asked Questions

Is CVE-2019-10149 being actively exploited?

Yes. CVE-2019-10149 is listed in the CISA Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. Multiple public exploits are available, including remote command execution and local privilege escalation variants. The EPSS score of 93.93% (99.88th percentile) indicates near-certain exploitation.

What products are affected by CVE-2019-10149?

CVE-2019-10149 affects Exim mail transfer agent versions 4.87 through 4.91 (inclusive). This also impacts Linux distributions that bundle Exim, including Canonical Ubuntu Linux 18.04 and 18.10, and Debian Linux 9.0.

How do I fix CVE-2019-10149?

Upgrade Exim to version 4.92 or later. For distribution-managed packages, apply the security updates provided by your Linux distribution. After patching, review mail server logs for signs of prior exploitation and check for unauthorized system modifications.

How severe is CVE-2019-10149?

CVE-2019-10149 has a CVSS 3.1 score of 9.8 (CRITICAL), the highest severity tier. It enables unauthenticated remote command execution on mail servers with no user interaction required. With an EPSS score in the 99.88th percentile, this is one of the most actively exploited mail server vulnerabilities.

CVSS Score

9.8
CRITICAL(9.8)

EPSS Score

EPSS Score99.96%
EPSS Percentile100.0%

Dates

PublishedJune 5, 2019
Last ModifiedJune 17, 2026
StatusAnalyzed
CVSS Versionv3.1

Need Help With Vulnerability Management?

Our security experts can help you prioritize and remediate vulnerabilities effectively.