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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | exim | 4.96.1-r0 | ALPINE-CVE-2023-42116 |
| Alpine:v3.21 | exim | 4.96.1-r0 | ALPINE-CVE-2023-42116 |
| Alpine:v3.22 | exim | 4.96.1-r0 | ALPINE-CVE-2023-42116 |
| Alpine:v3.23 | exim | 4.96.1-r0 | ALPINE-CVE-2023-42116 |
| Alpine:v3.24 | exim | 4.96.1-r0 | ALPINE-CVE-2023-42116 |
| Debian:12 | exim4 | 4.96-15+deb12u2 | DSA-5512-1 |
| Debian:12 | exim4 | 4.96-15+deb12u2 | DEBIAN-CVE-2023-42116 |
| Debian:13 | exim4 | 4.97~RC1-2 | DEBIAN-CVE-2023-42116 |
| Debian:14 | exim4 | 4.97~RC1-2 | DEBIAN-CVE-2023-42116 |
| Ubuntu:22.04:LTS | exim4 | 4.95-4ubuntu2.3 | UBUNTU-CVE-2023-42116 |
| Ubuntu:22.04:LTS | exim4 | 4.95-4ubuntu2.3 | USN-6411-1 |
Affected products (as reported)
Weakness: CWE-121 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- ZDI-23-1470 x_research-advisory
- https://lists.debian.org/debian-lts-announce/2023/10/msg00002.html