CVE-2026-40686
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large...
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.7
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
CVE-2026-40686- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2026-26444
3.7
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
EUVD-2026-26444- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-f965-ghfw-x6jx
3.7
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large...
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
GHSA-f965-ghfw-x6jx- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
3.7
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
CVE-2026-40686- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-40686
5.3
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
ALPINE-CVE-2026-40686- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-03
OSVDEBIAN-CVE-2026-40686
5.3
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
DEBIAN-CVE-2026-40686- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2026-40686
3.7
In Exim before 4.99.2, when utf8 operators are enabled, there is an out-of-bounds read if large UTF-8 trailing characters are present (malformed UTF-8 header data). Information might be divulged within an error message produced during handling of an unrelated e-mail message.
- Record
UBUNTU-CVE-2026-40686- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1778690918 No score
exim: Fix of CVE-2026-40686
- CVE-2026-40686: out-of-bounds read in the GETUTF8INC macro in src/expand.c when processing malformed UTF-8 in expansion operators with utf8 enabled, potentially disclosing heap data via SMTP rejection messages.
- Record
CLSA-2026-1778690918- Updated
- 2026-11-02
OSVCLSA-2026-1779369819 No score
Fix CVE(s): CVE-2026-40686, CVE-2026-40687
- SECURITY UPDATE: heap read out-of-bounds in UTF-8 expansion
- debian/patches/CVE-2026-40686.patch: harden ${from_utf8:} expansion operator against malformed UTF-8 trailing bytes.
- CVE-2026-40686
- SECURITY UPDATE: SPA authenticator buffer hardening
- debian/patches/CVE-2026-40687.patch: zero spa_base64_to_bits output buffer and replace static 1024-byte buffers in unicodeToString, strToUnicode, toString with dynamic store_get allocations sized to input.
- CVE-2026-40687
- Record
CLSA-2026-1779369819- Updated
- 2026-11-02
OSVCLSA-2026-1780519410 No score
exim: Fix of CVE-2026-40686
- CVE-2026-40686: out-of-bounds heap read in GETUTF8INC macro when utf8 operators process malformed input; may exfiltrate heap data via SMTP rejection messages
- Record
CLSA-2026-1780519410- Updated
- 2026-11-02
OSVUSN-8382-1 No score
exim4 vulnerabilities
Timo Longin discovered that Exim incorrectly handled certain SMTP messages in PIPELINING/CHUNKING configurations. A remote attacker could possibly use this issue to perform SMTP smuggling. This issue only affected Ubuntu 14.04 LTS. (CVE-2023-51766)
It was discovered that Exim incorrectly handled certain malformed JSON data in headers. A remote attacker could possibly use this issue to crash Exim, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2026-40685)
It was discovered that Exim incorrectly handled certain malformed UTF-8 headers. A remote attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 20.04 LTS. (CVE-2026-40686)
It was discovered that Exim incorrectly handled certain SPA resources. A remote attacker could possibly use this issue to crash Exim, resulting in a denial of service, or obtain sensitive information. This issue only affected Ubuntu 20.04 LTS. (CVE-2026-40687)
It was discovered that Exim incorrectly handled certain CHUNKING transfers in some GnuTLS configurations. A remote attacker could possibly use this issue to crash Exim, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2026-45185)
Warisjeet Singh discovered that Exim incorrectly handled certain proxy connections in builds with proxy support enabled. A remote attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2026-48840)
- Record
USN-8382-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
eximAlpine:v3.23 |
before 4.98.2-r0 | 4.98.2-r0 |
eximAlpine:v3.24 |
before 4.98.2-r0 | 4.98.2-r0 |
eximTuxCare:AlmaLinux:9.6 |
before 4.99.1-1.el9.tuxcare.els3 | 4.99.1-1.el9.tuxcare.els3 |
exim-greylistTuxCare:AlmaLinux:9.6 |
before 4.99.1-1.el9.tuxcare.els3 | 4.99.1-1.el9.tuxcare.els3 |
exim-monTuxCare:AlmaLinux:9.6 |
before 4.99.1-1.el9.tuxcare.els3 | 4.99.1-1.el9.tuxcare.els3 |
exim-mysqlTuxCare:AlmaLinux:9.6 |
before 4.99.1-1.el9.tuxcare.els3 | 4.99.1-1.el9.tuxcare.els3 |
exim-pgsqlTuxCare:AlmaLinux:9.6 |
before 4.99.1-1.el9.tuxcare.els3 | 4.99.1-1.el9.tuxcare.els3 |
exim4TuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
exim4-baseTuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
exim4-configTuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
exim4-daemon-heavyTuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
exim4-daemon-lightTuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
exim4-devTuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
eximon4TuxCare:Ubuntu:18.04 |
before 4.90.1-1ubuntu1.10+tuxcare.els6 | 4.90.1-1ubuntu1.10+tuxcare.els6 |
eximTuxCare:AlmaLinux:9.2 |
before 4.99.1-1.el9_2.tuxcare.els2 | 4.99.1-1.el9_2.tuxcare.els2 |
exim-greylistTuxCare:AlmaLinux:9.2 |
before 4.99.1-1.el9_2.tuxcare.els2 | 4.99.1-1.el9_2.tuxcare.els2 |
exim-monTuxCare:AlmaLinux:9.2 |
before 4.99.1-1.el9_2.tuxcare.els2 | 4.99.1-1.el9_2.tuxcare.els2 |
exim-mysqlTuxCare:AlmaLinux:9.2 |
before 4.99.1-1.el9_2.tuxcare.els2 | 4.99.1-1.el9_2.tuxcare.els2 |
exim-pgsqlTuxCare:AlmaLinux:9.2 |
before 4.99.1-1.el9_2.tuxcare.els2 | 4.99.1-1.el9_2.tuxcare.els2 |
exim4Debian:12 |
before 4.96-15+deb12u9, plus listed versions 4.96-154.96-15+deb12u14.96-15+deb12u24.96-15+deb12u34.96-15+deb12u4 Show 4 moreShow less4.96-15+deb12u54.96-15+deb12u64.96-15+deb12u74.96-15+deb12u8 |
4.96-15+deb12u9 |
exim4Debian:13 |
before 4.98.2-1+deb13u2, plus listed versions 4.98.2-14.98.2-1+deb13u1 |
4.98.2-1+deb13u2 |
exim4Debian:14 |
before 4.99.2-1, plus listed versions 4.98.2-14.98.2-1+hurd.14.98.2-24.99-14.99-2 Show 20 moreShow less4.99-34.99-44.99-4~bpo13+14.99-54.99-64.99-6~bpo13+14.99-74.99-7~bpo13+14.99.1-14.99.1-1~bpo13+14.99.1-24.99.1-34.99.1-44.99.1-54.99.1-64.99.2-1~bpo13+14.99~RC1-14.99~RC2-14.99~RC3-14.99~RC3-2 |
4.99.2-1 |
exim4Ubuntu:Pro:14.04:LTS |
All versions, plus listed versions 4.80-7ubuntu34.80-7ubuntu44.80-9ubuntu14.80-9ubuntu24.82-3ubuntu1 Show 13 moreShow less4.82-3ubuntu24.82-3ubuntu2.14.82-3ubuntu2.24.82-3ubuntu2.34.82-3ubuntu2.44.82-3ubuntu2.4+esm14.82-3ubuntu2.4+esm24.82-3ubuntu2.4+esm34.82-3ubuntu2.4+esm44.82-3ubuntu2.4+esm64.82-3ubuntu2.4+esm74.82-3ubuntu2.4+esm84.82-3ubuntu2.4+esm9 |
None known |
exim4Ubuntu:Pro:16.04:LTS |
All versions, plus listed versions 4.86-3ubuntu14.86-7ubuntu14.86-7ubuntu24.86-7ubuntu34.86.2-2ubuntu1 Show 15 moreShow less4.86.2-2ubuntu24.86.2-2ubuntu2.14.86.2-2ubuntu2.24.86.2-2ubuntu2.34.86.2-2ubuntu2.44.86.2-2ubuntu2.54.86.2-2ubuntu2.64.86.2-2ubuntu2.6+esm14.86.2-2ubuntu2.6+esm24.86.2-2ubuntu2.6+esm44.86.2-2ubuntu2.6+esm54.86.2-2ubuntu2.6+esm64.86.2-2ubuntu2.6+esm74.86.2-2ubuntu2.6+esm84.86.2-2ubuntu2.6+esm9 |
None known |
exim4Ubuntu:Pro:18.04:LTS |
All versions, plus listed versions 4.89-5ubuntu14.89-9ubuntu14.89-9ubuntu24.89-9ubuntu34.89-9ubuntu4 Show 15 moreShow less4.90.1-1ubuntu14.90.1-1ubuntu1.14.90.1-1ubuntu1.24.90.1-1ubuntu1.34.90.1-1ubuntu1.44.90.1-1ubuntu1.54.90.1-1ubuntu1.84.90.1-1ubuntu1.94.90.1-1ubuntu1.104.90.1-1ubuntu1.10+esm14.90.1-1ubuntu1.10+esm24.90.1-1ubuntu1.10+esm34.90.1-1ubuntu1.10+esm44.90.1-1ubuntu1.10+esm54.90.1-1ubuntu1.10+esm6 |
None known |
exim4Ubuntu:Pro:20.04:LTS |
before 4.93-13ubuntu1.12+esm1, plus listed versions 4.92.1-1ubuntu34.92.1-1ubuntu44.93~RC2-1ubuntu14.93-9ubuntu14.93-11ubuntu1 Show 11 moreShow less4.93-12ubuntu14.93-13ubuntu14.93-13ubuntu1.14.93-13ubuntu1.54.93-13ubuntu1.64.93-13ubuntu1.74.93-13ubuntu1.84.93-13ubuntu1.94.93-13ubuntu1.104.93-13ubuntu1.114.93-13ubuntu1.12 |
4.93-13ubuntu1.12+esm1 |
exim4Ubuntu:22.04:LTS |
before 4.95-4ubuntu2.7, plus listed versions 4.94.2-7ubuntu24.95-2ubuntu24.95-4ubuntu14.95-4ubuntu24.95-4ubuntu2.1 Show 5 moreShow less4.95-4ubuntu2.24.95-4ubuntu2.34.95-4ubuntu2.44.95-4ubuntu2.54.95-4ubuntu2.6 |
4.95-4ubuntu2.7 |
exim4Ubuntu:24.04:LTS |
before 4.97-4ubuntu4.4, plus listed versions 4.96-17ubuntu24.96-17ubuntu2.14.97-3ubuntu14.97-4ubuntu14.97-4ubuntu3 Show 4 moreShow less4.97-4ubuntu44.97-4ubuntu4.14.97-4ubuntu4.24.97-4ubuntu4.3 |
4.97-4ubuntu4.4 |
exim4Ubuntu:25.10 |
before 4.98.2-1ubuntu2.1, plus listed versions 4.98.1-1ubuntu24.98.2-1ubuntu14.98.2-1ubuntu2 |
4.98.2-1ubuntu2.1 |
exim4Ubuntu:26.04:LTS |
before 4.99.1-1ubuntu1.1, plus listed versions 4.98.2-1ubuntu24.99-4ubuntu14.99.1-1ubuntu1 |
4.99.1-1ubuntu1.1 |
exim4Ubuntu:Pro:14.04:LTS |
before 4.82-3ubuntu2.4+esm9, plus listed versions 4.80-7ubuntu34.80-7ubuntu44.80-9ubuntu14.80-9ubuntu24.82-3ubuntu1 Show 12 moreShow less4.82-3ubuntu24.82-3ubuntu2.14.82-3ubuntu2.24.82-3ubuntu2.34.82-3ubuntu2.44.82-3ubuntu2.4+esm14.82-3ubuntu2.4+esm24.82-3ubuntu2.4+esm34.82-3ubuntu2.4+esm44.82-3ubuntu2.4+esm64.82-3ubuntu2.4+esm74.82-3ubuntu2.4+esm8 |
4.82-3ubuntu2.4+esm9 |
exim4Ubuntu:Pro:16.04:LTS |
before 4.86.2-2ubuntu2.6+esm9, plus listed versions 4.86-3ubuntu14.86-7ubuntu14.86-7ubuntu24.86-7ubuntu34.86.2-2ubuntu1 Show 14 moreShow less4.86.2-2ubuntu24.86.2-2ubuntu2.14.86.2-2ubuntu2.24.86.2-2ubuntu2.34.86.2-2ubuntu2.44.86.2-2ubuntu2.54.86.2-2ubuntu2.64.86.2-2ubuntu2.6+esm14.86.2-2ubuntu2.6+esm24.86.2-2ubuntu2.6+esm44.86.2-2ubuntu2.6+esm54.86.2-2ubuntu2.6+esm64.86.2-2ubuntu2.6+esm74.86.2-2ubuntu2.6+esm8 |
4.86.2-2ubuntu2.6+esm9 |
exim4Ubuntu:Pro:18.04:LTS |
before 4.90.1-1ubuntu1.10+esm6, plus listed versions 4.89-5ubuntu14.89-9ubuntu14.89-9ubuntu24.89-9ubuntu34.89-9ubuntu4 Show 14 moreShow less4.90.1-1ubuntu14.90.1-1ubuntu1.14.90.1-1ubuntu1.24.90.1-1ubuntu1.34.90.1-1ubuntu1.44.90.1-1ubuntu1.54.90.1-1ubuntu1.84.90.1-1ubuntu1.94.90.1-1ubuntu1.104.90.1-1ubuntu1.10+esm14.90.1-1ubuntu1.10+esm24.90.1-1ubuntu1.10+esm34.90.1-1ubuntu1.10+esm44.90.1-1ubuntu1.10+esm5 |
4.90.1-1ubuntu1.10+esm6 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-40686 is a low vulnerability (CVSS 3.7) in Exim, published April 29, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.25%, the 16th percentile. Fixed in exim 4.98.2-r0.
References
openwall.com/lists/oss-security/2026/04/30/21
exim.org/static/doc/security/cve-2026-04.1/CVE2026-40686.assessment
code.exim.org/exim/exim/commit/f2570bde16fb4d4a1242ff363a4c4eecf6372efc
exim.org/static/doc/security/CVE-2026-40686.txt
nvd.nist.gov/vuln/detail/CVE-2026-40686
exim.org/static/doc/security/CVE-2025-40686.txt
Show 16 moreShow less
github.com/advisories/GHSA-f965-ghfw-x6jx
security.alpinelinux.org/vuln/CVE-2026-40686
errata.tuxcare.com/els_os/tuxcare9.6esu/CLSA-2026-1778690918.html
errata.tuxcare.com/els_os/ubuntu18.04els/CLSA-2026-1779369819.html
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1780519410.html
security-tracker.debian.org/tracker/CVE-2026-40686
ubuntu.com/security/CVE-2026-40686
cve.org/CVERecord?id=CVE-2026-40686
lists.exim.org/lurker/message/20260429.121733.f58d9686.en.html
ubuntu.com/security/notices/USN-8228-1
ubuntu.com/security/notices/USN-8382-1
ubuntu.com/security/CVE-2023-51766
ubuntu.com/security/CVE-2026-40685
ubuntu.com/security/CVE-2026-40687
ubuntu.com/security/CVE-2026-45185
ubuntu.com/security/CVE-2026-48840