CVE & CISA-KEV Catalog

CVE-2026-40685

MEDIUM
6.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
exim4Debian
Fixed in:4.96-15+deb12u9CVE-2026-40685
Fixed in:4.98.2-1+deb13u2CVE-2026-40685
Fixed in:4.99.2-1CVE-2026-40685
exim4Ubuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
Fixed in:4.95-4ubuntu2.7USN-8228-1
Fixed in:4.97-4ubuntu4.4USN-8228-1
Fixed in:4.98.2-1ubuntu2.1USN-8228-1
exim4-baseUbuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
Fixed in:4.95-4ubuntu2.7USN-8228-1
Fixed in:4.97-4ubuntu4.4USN-8228-1
Fixed in:4.98.2-1ubuntu2.1USN-8228-1
exim4-daemon-heavyUbuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
exim4-daemon-lightUbuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
exim4-devUbuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
eximon4Ubuntu
Fixed in:4.82-3ubuntu2.4+esm9USN-8382-1
Fixed in:4.86.2-2ubuntu2.6+esm9USN-8382-1
Fixed in:4.90.1-1ubuntu1.10+esm6USN-8382-1
Fixed in:4.93-13ubuntu1.12+esm1USN-8382-1
Fixed in:4.95-4ubuntu2.7USN-8228-1
Fixed in:4.97-4ubuntu4.4USN-8228-1
Fixed in:4.98.2-1ubuntu2.1USN-8228-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Exploit Intelligence

0.32%probability of exploitation in 30 days
25thpercentile

Low risk: more likely to be exploited than 25% of all known CVEs.

References

Vendor Advisory1
Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-684 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-5363High7.53.3%-Fix
CVE-2025-47227High7.52.0%--
CVE-2020-11054Low3.51.5%-Fix
CVE-2026-34478High7.50.8%-Fix
CVE-2023-24845Critical9.10.7%--
CVE-2024-50357Critical9.80.6%--

Common questions

How do I fix CVE-2026-40685?

Published advisories record a fix for 7 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2026-40685 being actively exploited?

Not that we know of. CVE-2026-40685 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.32% is the estimated probability that it will be exploited in the next 30 days. That is higher than 25% of all scored CVEs.

How severe is CVE-2026-40685?

CVE-2026-40685 has a CVSS v3 base score of 6.5, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-40685 affect?

Published advisories record a fix for exim4 (Debian), exim4 (Ubuntu), exim4-base (Ubuntu), exim4-daemon-heavy (Ubuntu), and 3 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-40685
CVE-2026-40685 severity badge

Markdown

[![CVE-2026-40685](https://tridentstack.com/cve/badge/CVE-2026-40685.svg)](https://tridentstack.com/cve/CVE-2026-40685)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-40685"><img src="https://tridentstack.com/cve/badge/CVE-2026-40685.svg" alt="CVE-2026-40685"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-01.