CVE-2016-9963
Medium · 5.9CVSS
5.9
EPSS
3.1%
Published
Feb 1, 2017
CISA due date
—
Cloudanix analysis
An older version of email server software could leak the secret key used to prove messages are legitimate, letting attackers send convincing fake emails from your domain.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw in Exim exposes the private DKIM signing key in log files and bounce messages, allowing unauthorized retrieval of sensitive cryptographic material used for email authentication.
Why it matters to the business
Attackers obtaining the key can forge authenticated emails from the affected domain, leading to reputational damage, increased phishing success, and potential loss of trust in email communications; the issue affects widely deployed email servers on Linux distributions with no ransomware usage reported.
How an attack unfolds
An attacker sends crafted messages that trigger bounce generation or logging paths in vulnerable Exim versions, then accesses the resulting log entries or bounce content containing the embedded private DKIM key; no named threat actors or campaigns are associated with this disclosure vector.
How to fix it
Upgrade Exim to version 4.87.1 or later on all affected systems including Ubuntu and Debian Linux distributions; disable verbose logging of DKIM operations where possible until patched; monitor vendor advisories for exact package versions in each distribution.
How to confirm the fix worked
Verify installed Exim version is 4.87.1 or higher; inspect mail logs and bounce templates for absence of private key material; test DKIM signing functionality post-upgrade to confirm no leakage occurs.
Typical attack path
- Identify an Exim instance prior to 4.87.1 processing DKIM-signed mail
- Trigger delivery failures or logging events that include key material
- Retrieve the private key from accessible bounce messages or log files
- Use the key to sign and send forged emails appearing to originate from the domain
How to detect it
Search mail server logs and bounce message archives for strings containing DKIM private key blocks or related headers; examine historical log files for any instances where key material appears alongside bounce or delivery failure entries.
- DKIM private key blocks appearing in mail logs or bounce files
- Exim process logs containing base64-encoded RSA private key data near delivery failure entries
What your security team should do
- Prioritize upgrade of all Exim installations to 4.87.1 or newer within standard change windows given the 2017 disclosure date and stable low EPSS
- Audit DKIM key handling procedures and rotate any keys potentially exposed in historical logs
- Review log retention and access controls to prevent future key leakage
- Include Exim version checks in regular vulnerability scanning
The record
Exim before 4.87.1 might allow remote attackers to obtain the private DKIM signing key via vectors related to log files and bounce messages.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | exim4 | 0 | 4.88~RC6-2 |
| Debian:12 | exim4 | 0 | 4.88~RC6-2 |
| Debian:13 | exim4 | 0 | 4.88~RC6-2 |
| Debian:7 | exim4 | 0 | 4.80-7+deb7u4 |
| Debian:8 | exim4 | 0 | 4.84.2-2+deb8u2 |
| Ubuntu:14.04:LTS | exim4 | 0 | 4.82-3ubuntu2.2 |
| Ubuntu:16.04:LTS | exim4 | 0 | 4.86.2-2ubuntu2.1 |
| openSUSE:Tumbleweed | exim | 0 | 4.94.2-4.2 |
Related vulnerabilities
- CVE-2023-42115 Exim AUTH Out-Of-Bounds Write Remote Code Execution Vulnerability. Also affects exim4
- CVE-2023-42117 Exim Improper Neutralization of Special Elements Remote Code Execution Vulnerability. Also affects exim4
- CVE-2023-42116 Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability. Also affects exim4
- CVE-2023-42119 Exim dnsdb Out-Of-Bounds Read Information Disclosure Vulnerability. Also affects exim4
- CVE-2023-42114 Exim NTLM Challenge Out-Of-Bounds Read Information Disclosure Vulnerability. Also affects exim4
- CVE-2022-3559 A vulnerability was found in Exim and classified as problematic. Also affects exim4
- CVE-2017-16944 The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows… Also affects exim4
- CVE-2017-16943 The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows… Also affects exim4