medium CVSS 5.9 EPSS 0.61%

CVE-2026-40684·Exim vulnerability

In Exim before 4.99.2, on systems using musl libc (not glibc), an attacker can crash the connection instance when malformed DNS data is present in PTR records. This is caused by a dn_expand oddity in octal printing.

Severity
medium
Software
Exim
Fixed in
4.99.2
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.61% — higher than 47% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 4.99.2

Fixed in: 4.99.2

How to fix this CVE

Update Exim to version 4.99.2 or later to resolve a denial-of-service vulnerability affecting musl libc systems. Systems running Exim on Alpine Linux, musl-based containers, or other musl libc distributions should prioritize this update to prevent connection crashes triggered by malformed DNS PTR records. Verify your libc implementation and apply the patch promptly.

sudo dnf update exim

Defensia detects this vulnerability

How to check if you are affected

  1. Step 1: Check installed Exim version: exim -v | grep -oP 'Exim version \K[0-9.]+' and compare against 4.99.2
  2. Step 2: Verify your system uses musl libc: ldd /usr/sbin/exim | grep -i musl (if output appears, you are vulnerable)
  3. Step 3: Search mail logs for DNS resolution errors: grep -i 'dn_expand\|dns.*error\|malformed' /var/log/exim4/mainlog or /var/log/mail.log
  4. Step 4: After patching, confirm update: exim -v and verify version is 4.99.2 or higher

FAQ

What is CVE-2026-40684?

CVE-2026-40684 is a denial-of-service vulnerability in Exim that occurs when processing malformed DNS PTR records on systems using musl libc. The vulnerability causes the mail server connection instance to crash due to improper handling of octal output in DNS name expansion.

Is CVE-2026-40684 being actively exploited?

No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is currently available.

What versions of Exim are affected by CVE-2026-40684?

All Exim versions before 4.99.2 are affected when running on musl libc-based systems. glibc systems are not impacted by this particular issue.

How do I check if my server is vulnerable to CVE-2026-40684?

Run 'exim -v' to check your version (vulnerable if below 4.99.2) and 'ldd /usr/sbin/exim | grep musl' to confirm you're using musl libc. If both conditions are true, your system is vulnerable.

Does Defensia detect CVE-2026-40684?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Exim is installed on a monitored server, CVE-2026-40684 will appear in your dashboard with remediation steps.

Related Exim CVEs

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-40684. Free for 1 server.

Get started free