Exim Vulnerabilities Include Critical Unauthenticated RCE; Patches and Workarounds Available

· Original article ↗

Summary

ZDI disclosed multiple Exim vulnerabilities, including a critical flaw enabling unauthenticated remote code execution when External authentication is enabled. Some flaws have patches; others remain unpatched, with workarounds recommended.

Key points

  • CVE-2023-42115 is described as a critical out-of-bounds write in Exim’s SMTP service that can allow unauthenticated remote code execution when External authentication is enabled.
  • The article also lists high-severity remote code execution flaws CVE-2023-42116, CVE-2023-42117 and CVE-2023-42118, plus lower-severity information disclosure flaws CVE-2023-42114 and CVE-2023-42119.
  • Exploitation of the listed flaws depends on specific enabled features or configurations, including SPA authentication, an untrusted proxy, SPF ACL conditions, or an untrusted DNS resolver.
  • CVE-2023-42114, CVE-2023-42115 and CVE-2023-42116 are listed as fixed in Exim versions 4.96.1 and 4.97; the article says no fixes were available for CVE-2023-42117 and CVE-2023-42118.
  • Recommended steps include upgrading where patches are available, disabling affected features or applying the listed workarounds, and restricting remote access when External authentication is enabled.
  • Wiz estimates that fewer than 5% of cloud environments have publicly exposed Exim servers that might be at risk; it does not report confirmed exploitation.

Article Details

Vulnerability Types
  • Out-of-bounds write
  • Improper input validation
  • Remote code execution
  • Information disclosure
Severity
CVE-2023-42115 is critical; CVE-2023-42116, CVE-2023-42117, and CVE-2023-42118 are high severity; CVE-2023-42114 and CVE-2023-42119 are low severity.
Affected Versions
  • Exim: all versions assumed affected by CVE-2023-42117
  • Exim: all versions assumed affected by CVE-2023-42118
  • Exim: all versions assumed affected by CVE-2023-42119
Exploitation Status
not_reported
Exploit Availability
unknown
Patch Status
partial
Workarounds
  • For CVE-2023-42114, disable SPA (NTLM) authentication.
  • For CVE-2023-42115, disable EXTERNAL authentication.
  • For CVE-2023-42116, do not use SPA (NTLM) authentication.
  • For CVE-2023-42117, do not use Exim behind an untrusted proxy-protocol proxy.
  • For CVE-2023-42118, do not use the SPF condition in your ACL.
  • For CVE-2023-42119, use a trustworthy DNS resolver able to validate data according to DNS record types.

MITRE ATT&CK

CVE

Products