CVE-2020-28007
Exim vulnerability analysis and mitigation

Overview

CVE-2020-28007 is a local privilege escalation vulnerability in Exim mail server that affects all versions since at least 2004. The vulnerability exists because Exim operates as root in its log directory, which belongs to the 'exim' user. When exploited, it allows an attacker who has obtained 'exim' user privileges to escalate to full root privileges through a symlink or hardlink attack in Exim's log directory (Qualys Advisory, The Record).

Technical details

The vulnerability stems from Exim's log file handling mechanism where it opens log files in append mode as root. The log file path is derived from logfilepath, a format string defined at compile time. On Debian systems, logfilepath is '/var/log/exim4/%slog', where '%s' is converted to 'main', 'reject', 'panic', or 'debug' at runtime. An attacker with 'exim' user privileges can create a symlink or hardlink in the log directory to redirect writes to arbitrary files on the system (Qualys Advisory).

Impact

The vulnerability allows an attacker who has obtained 'exim' user privileges to escalate to full root privileges. This can be achieved by creating a symlink in the log directory and appending arbitrary contents to arbitrary files (such as /etc/passwd), effectively gaining complete system control (Qualys Advisory).

Mitigation and workarounds

The vulnerability was addressed in Exim version 4.94.2. System administrators should update to this version or later to mitigate the risk. The fix prevents the symlink and hardlink attacks in the log directory by implementing proper file handling controls (NVD).

Community reactions

This vulnerability was part of the '21Nails' vulnerability collection discovered by Qualys, which impacted approximately 60% of the internet's email servers. The disclosure generated significant attention in the security community due to Exim's widespread deployment and the severity of the vulnerabilities (The Record).

Additional resources


SourceThis report was generated using AI

Related Exim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-26794CRITICAL9.8
  • EximExim
  • exim4
NoYesFeb 21, 2025
CVE-2025-30232HIGH7.8
  • EximExim
  • exim-clamav
NoYesMar 28, 2025
CVE-2025-53881MEDIUM6.9
  • EximExim
  • eximstats-html
NoYesOct 02, 2025
CVE-2024-39929MEDIUM5.4
  • EximExim
  • exim-debuginfo
NoYesJul 04, 2024
CVE-2023-42119LOW3.1
  • EximExim
  • exim4
NoYesMay 03, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management