Vulnerability · Published May 3, 2024 · Assigned by zdi

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

High 8.1

In plain English

A high-severity stack buffer overflow in Exim from Exim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.8% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)8.1High
Exploit odds (30 days)3.8%top 10.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20exim4.96.1-r0ALPINE-CVE-2023-42116
Alpine:v3.21exim4.96.1-r0ALPINE-CVE-2023-42116
Alpine:v3.22exim4.96.1-r0ALPINE-CVE-2023-42116
Alpine:v3.23exim4.96.1-r0ALPINE-CVE-2023-42116
Alpine:v3.24exim4.96.1-r0ALPINE-CVE-2023-42116
Debian:12exim44.96-15+deb12u2DSA-5512-1
Debian:12exim44.96-15+deb12u2DEBIAN-CVE-2023-42116
Debian:13exim44.97~RC1-2DEBIAN-CVE-2023-42116
Debian:14exim44.97~RC1-2DEBIAN-CVE-2023-42116
Ubuntu:22.04:LTSexim44.95-4ubuntu2.3UBUNTU-CVE-2023-42116
Ubuntu:22.04:LTSexim44.95-4ubuntu2.3USN-6411-1

Affected products (as reported)

VendorProductVersions
Exim Exim exim 4.95

Weakness: CWE-121 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References