CVE-2026-40685: Critical severity Exim Exim vulnerability

Published Apr 29, 2026
·
Updated

In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds heap write can occur when a JSON operator encounters malformed JSON in an untrusted header, because of an incorrect implementation of \ skipping.

Affected Software

16 affected componentsFixes available
Exim Exim<4.99.2
alpine/exim<4.98.2-r0
4.98.2-r0
alpine/exim<4.98.2-r0
4.98.2-r0
Exim Exim<4.99.2
debian/exim4<4.96-15+deb12u9
4.96-15+deb12u9
debian/exim4<4.98.2-1+deb13u2
4.98.2-1+deb13u2
debian/exim4<4.99.2-1
4.99.2-1
debian/exim4
4.96-15+deb12u94.98.2-1+deb13u24.99.2-1
ubuntu/exim4*
ubuntu/exim4*
ubuntu/exim4*
ubuntu/exim4<4.93-13ubuntu1.12+esm1
4.93-13ubuntu1.12+esm1
ubuntu/exim4<4.95-4ubuntu2.7
4.95-4ubuntu2.7
ubuntu/exim4<4.97-4ubuntu4.4
4.97-4ubuntu4.4
ubuntu/exim4<4.98.2-1ubuntu2.1
4.98.2-1ubuntu2.1
ubuntu/exim4<4.99.1-1ubuntu1.1
4.99.1-1ubuntu1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/exim to a version that resolves this vulnerability.

    Fixed in 4.98.2-r0
  2. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96-15+deb12u9
  3. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.98.2-1+deb13u2
  4. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.99.2-1
  5. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96-15+deb12u9Fixed in 4.98.2-1+deb13u2Fixed in 4.99.2-1
  6. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.93-13ubuntu1.12+esm1
  7. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.95-4ubuntu2.7
  8. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.97-4ubuntu4.4
  9. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.98.2-1ubuntu2.1
  10. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.99.1-1ubuntu1.1
  11. Upgrade

    Upgrade Exim to a version that resolves this vulnerability.

    Fixed in 4.99.2

Event History

Apr 29, 2026
CVE Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionSeverityAffected Software
Apr 30, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
May 1, 2026
Data Sourced
via NVD·05:51 PM
RemedyAffected Software
Updated
via NVD·05:51 PM
SeverityWeakness
Event
via NVD·05:51 PM
May 4, 2026
News Published
via The Hacker News·02:23 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-40685?

CVE-2026-40685 has a high severity rating due to the potential for an out-of-bounds heap write which can lead to denial of service or code execution.

2

How do I fix CVE-2026-40685?

To fix CVE-2026-40685, upgrade Exim to version 4.99.2 or later where the vulnerability is patched.

3

What software is affected by CVE-2026-40685?

CVE-2026-40685 affects Exim versions prior to 4.99.2 when JSON lookup is enabled.

4

What is the attack vector for CVE-2026-40685?

The attack vector for CVE-2026-40685 involves sending malformed JSON within untrusted headers that triggers the out-of-bounds write.

5

Can CVE-2026-40685 be exploited remotely?

Yes, CVE-2026-40685 can be exploited remotely if an attacker can send specially crafted emails to the vulnerable Exim server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203