Outdated Exim

A mail server runs a version of the Exim mail transfer agent older than the releases that fix published Exim security vulnerabilities.

SeverityHigh
CVSS 3.18.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Open in the calculator
CVSS 4.09.2 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Open in the calculator
CWECWE-1395: Dependency on Vulnerable Third-Party Component
OWASP Top 10A03:2025 Software Supply Chain Failures
MITRE ATT&CKT1190 Exploit Public-Facing Application, T1210 Exploitation of Remote Services
CategoryOutdated Components

Description

A mail server is running a version of Exim, a mail transfer agent widely used on Linux and Unix systems and the default on some distributions, older than the releases that fix published Exim security vulnerabilities. Exim usually accepts SMTP connections from the internet, and parts of it run with root privileges, so flaws in it can be serious.

Exim has had several flaws that allow a remote, unauthenticated attacker on the internet to run code on the server, in several cases as root. CVE-2019-10149 allowed commands to be run through a crafted recipient address and was exploited by a state-sponsored group; CVE-2019-15846 allowed code execution as root through a crafted TLS Server Name Indication value; and CVE-2023-42115 was an out-of-bounds write in the handling of SMTP authentication. A set of 21 flaws reported together by researchers, known as 21Nails, included both remote code execution and local privilege escalation issues. Exim flaws have been exploited at scale soon after details were published.

With code execution, an attacker can read and alter all mail passing through or stored on the server, harvest credentials, send mail that appears to come from the organisation, and use the server as a foothold into the internal network. Some of these flaws need particular features to be enabled, such as TLS or a specific authentication method, so the exposure depends on the configuration: where the missing fixes need features that are not enabled, or only allow local privilege escalation, the risk is lower, but it rises sharply if another flaw gives an attacker a local foothold.

Exim announces its version in the SMTP banner by default, which is how scanners identify it. Linux distributions backport fixes into older version numbers, so the distribution's advisories or a credentialed check of the package release give a reliable answer; an Exim build compiled from source and not updated since is the clearest case.

Remediation

Upgrade Exim to a release that contains all published security fixes:

  • Apply the distribution's latest Exim security updates through the package manager or, where Exim is built from source, upgrade to the current Exim release, and keep to a regular update cycle.
  • Where Exim is bundled with a hosting control panel or appliance, update it through that product's supported update mechanism, and replace systems that no longer receive updates.
  • Subscribe to the Exim announcements list or the distribution's security advisories.

Reduce exposure while updates are planned: disable authentication methods, protocols and features that are not used, accept SMTP connections from the internet only on servers that need to receive external mail, and apply any configuration workaround given in an advisory. The version can be removed from the SMTP banner with the smtp_banner option, but this only hides the version and does not reduce the risk. Confirm the fix by checking the version reported by exim -bV, or the installed package release, against the fixed versions in the relevant advisories.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Patching and Outdated Software Findings

Every Patching and Outdated Software finding