Vulnerabilities / CVE-2026-40685

critical

CVE-2026-40685

In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds h ...

Published Modified CWE 684, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

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

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.23exim4.98.2-r0
alpine 3.24exim4.98.2-r0
alpine edgeexim4.98.2-r0
chainguardexim4.99.5-r0
debian 11exim4no fix listed
debian 12exim44.96-15+deb12u9
debian 13exim44.98.2-1+deb13u2
debian 14exim44.99.2-1
echoexim44.96-15+deb12u9
rapidfort debian 12exim40:4.98.2-1+deb13u2, 0:4.99.2-1
rapidfort debian 13exim40:4.98.2-1+deb13u2, 0:4.99.2-1
rapidfort fedora 43exim, exim-clamav, exim-greylist and 3 more4.99.2-1.fc43
Show all 38 entries from 23 sources
SourcePackageFixed in
alpine 3.23exim4.98.2-r0
alpine 3.24exim4.98.2-r0
alpine edgeexim4.98.2-r0
chainguardexim4.99.5-r0
debian 11exim4no fix listed
debian 12exim44.96-15+deb12u9
debian 13exim44.98.2-1+deb13u2
debian 14exim44.99.2-1
echoexim44.96-15+deb12u9
rapidfort debian 12exim40:4.98.2-1+deb13u2, 0:4.99.2-1
rapidfort debian 13exim40:4.98.2-1+deb13u2, 0:4.99.2-1
rapidfort fedora 43exim4.99.2-1.fc43
rapidfort fedora 43exim-clamav4.99.2-1.fc43
rapidfort fedora 43exim-greylist4.99.2-1.fc43
rapidfort fedora 43exim-mon4.99.2-1.fc43
rapidfort fedora 43exim-mysql4.99.2-1.fc43
rapidfort fedora 43exim-pgsql4.99.2-1.fc43
rapidfort Oracle Linux 10exim4.99.2-1.el10_3
rapidfort Oracle Linux 10exim-clamav4.99.2-1.el10_3
rapidfort Oracle Linux 10exim-greylist4.99.2-1.el10_3
rapidfort Oracle Linux 10exim-mon4.99.2-1.el10_3
rapidfort Oracle Linux 10exim-mysql4.99.2-1.el10_3
rapidfort Oracle Linux 10exim-pgsql4.99.2-1.el10_3
rapidfort Oracle Linux 9exim4.99.2-1.el9
rapidfort Oracle Linux 9exim-clamav4.99.2-1.el9
rapidfort Oracle Linux 9exim-greylist4.99.2-1.el9
rapidfort Oracle Linux 9exim-mon4.99.2-1.el9
rapidfort Oracle Linux 9exim-mysql4.99.2-1.el9
rapidfort Oracle Linux 9exim-pgsql4.99.2-1.el9
rapidfort ubuntu 20.04exim40:4.95-4ubuntu2.7, 0:4.97-4ubuntu4.4, 0:4.99.1-1ubuntu1.1
rapidfort ubuntu 22.04exim40:4.95-4ubuntu2.7, 0:4.97-4ubuntu4.4, 0:4.99.1-1ubuntu1.1
rapidfort ubuntu 24.04exim40:4.95-4ubuntu2.7, 0:4.97-4ubuntu4.4, 0:4.99.1-1ubuntu1.1
ubuntu 20.04-ESMexim44.93-13ubuntu1.12+esm1
ubuntu 22.04exim44.95-4ubuntu2.7
ubuntu 24.04exim44.97-4ubuntu4.4
ubuntu 25.10exim44.98.2-1ubuntu2.1
ubuntu 26.04exim44.99.1-1ubuntu1.1
wolfiexim4.99.5-r0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.