Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2023-42115 EUVD-2023-46574GHSA-67rj-8f2h-26fc

Exim AUTH Out-Of-Bounds Write Remote Code Execution Vulnerability

Published May 3, 2024 · Updated Sep 20, 2024 · Assigned by zdi

Description

Exim AUTH Out-Of-Bounds Write 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 smtp service, which listens on TCP port 25 by default. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of a buffer. An attacker can leverage this vulnerability to execute code in the context of the service account.
. Was ZDI-CAN-17434.

Affected products

VendorProductAffectedFixed
Exim Exim exim 4.95 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 exim4 4.97~RC1-2 —
Debian 13 exim4 4.97~RC1-2 —
Debian 12 exim4 4.96-15+deb12u2 DSA-5512-1
Debian 11 exim4 4.94.2-7+deb11u1 DSA-5512-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS exim4 4.95-4ubuntu2.3 USN-6411-1
Ubuntu 20.04 LTS exim4 4.93-13ubuntu1.8 USN-6411-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS exim4 4.90.1-1ubuntu1.10+esm1 USN-6411-1
Ubuntu Pro 16.04 LTS exim4 4.86.2-2ubuntu2.6+esm4 USN-6411-1
Ubuntu Pro 14.04 LTS exim4 4.82-3ubuntu2.4+esm6 USN-6411-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 exim 4.94.2-bp155.5.3.1 openSUSE-SU-2024:0007-1, openSUSE-SU-2023:0293-1
SUSE Package Hub 15 SP4 exim 4.94.2-bp155.5.3.1 openSUSE-SU-2023:0293-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed exim 4.96.1-1.1 openSUSE-SU-2024:13282-1
openSUSE Leap 15.5 exim 4.94.2-bp155.5.3.1 openSUSE-SU-2024:0007-1, openSUSE-SU-2023:0293-1
openSUSE Leap 15.4 exim 4.94.2-bp155.5.3.1 openSUSE-SU-2023:0293-1
ReleasePackageFixed inAdvisory
Alpine v3.24 exim 4.96.1-r0 —
Alpine v3.23 exim 4.96.1-r0 —
Alpine v3.22 exim 4.96.1-r0 —
Alpine v3.21 exim 4.96.1-r0 —
Alpine v3.20 exim 4.96.1-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 exim 4.96.1-r0 —
Alpine v3.18 exim 4.96.1-r0 —
Alpine v3.17 exim 4.96.1-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling exim 4.96.1-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References