CVE-2026-40684
published medium CVSS 3.1 · 5.9Exim: Denial of Service due to malformed DNS data in PTR records on musl libc systems
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Exim | — | Exim0 to < 4.99.2 · Other versions: unaffected | Affected | Not stated | mitre |
| Alpine Linux | edge | exim | Fixed | 4.98.2-r0 | Package fix record |
| Debian | bookworm | exim4 | Advisory build | 4.96-15+deb12u9 | DSA-6265-1 |
| Alpine Linux | v3.23 | exim | Fixed | 4.98.2-r0 | Package fix record |
| Alpine Linux | v3.24 | exim | Fixed | 4.98.2-r0 | Package fix record |
| Debian | trixie | exim4 | Advisory build | 4.98.2-1+deb13u2 | DSA-6265-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Exim | Exim | 0 to < 4.99.2 (affected · semver)Default: unaffected | mitre · cna |
Weaknesses
1- CWE-684 CWE-684 Incorrect Provision of Specified Functionality
References
5- http://www.openwall.com/lists/oss-security/2026/05/01/11
- https://code.exim.org/exim/exim/commit/628bbaca7672748d941a12e7cd5f0122a4e18c81
- https://exim.org/static/doc/security/CVE-2026-40684.txt
- https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40684.assessment
- https://www.openwall.com/lists/oss-security/2026/04/30/21
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dacac68c33e70a09ed98358a9b9e52f0635e9b8e509ff8900ef48494b128445a
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record