CVEfocus › CVE database › CVE-2023-42116

CVE-2023-42116Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability

CVSS 8.1 HighEPSS 1.9% (higher than 80% of CVEs)Published 2024-05-03Updated 2025-11-04Assigner: zdi

Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Exim. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of NTLM challenge requests. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the service account. . Was ZDI-CAN-17515.

CWE-121

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04exim4Fixed4.95-4ubuntu2.3UBUNTU-CVE-2023-42116
Ubuntu 20.04exim4Fixed4.93-13ubuntu1.8UBUNTU-CVE-2023-42116
Ubuntu 18.04exim4Fix pending4.90.1-1ubuntu1.10+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-42116
Ubuntu 16.04exim4Fix pending4.86.2-2ubuntu2.6+esm4 (Ubuntu Pro)UBUNTU-CVE-2023-42116
Ubuntu 14.04exim4Fix pending4.82-3ubuntu2.4+esm6 (Ubuntu Pro)UBUNTU-CVE-2023-42116
Debian 14exim4Fixed4.97~RC1-2DEBIAN-CVE-2023-42116
Debian 13exim4Fixed4.97~RC1-2DEBIAN-CVE-2023-42116
Debian 12exim4Fixed4.96-15+deb12u2DEBIAN-CVE-2023-42116
Alpine Linux 3.24eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.23eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.22eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.21eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.20eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.19eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.18eximFixed4.96.1-r0ALPINE-CVE-2023-42116
Alpine Linux 3.17eximFixed4.96.1-r0ALPINE-CVE-2023-42116

What the vendor says

As published in the CVE record by zdi, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.