Stack-based buffer overflow in Exim - CVE-2023-42116

 

Stack-based buffer overflow in Exim - CVE-2023-42116

Published: September 28, 2023 / Updated: October 1, 2023


Vulnerability identifier: #VU81253
CSH Severity: Critical
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-42116
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when handling NTLM challenge requests. A remote unauthenticated attacker can send specially crafted data to the server, trigger a stack-based buffer overflow and execute arbitrary code on the target system.



Affected software

Exim
Debian Linux
Gentoo Linux
Amazon Linux AMI
Fedora
Ubuntu
RecoverPoint for Virtual Machines
exim4-daemon-heavy (Ubuntu package)
exim4-daemon-light (Ubuntu package)
exim4-base (Ubuntu package)
eximon4 (Ubuntu package)
exim4 (Ubuntu package)
exim
exim4 (Debian package)
mail-mta/exim

How to mitigate CVE-2023-42116

Install update from vendor's website.

Exim - addressed in versions 4.96.1, 4.97
RecoverPoint for Virtual Machines - update to 6.0 SP2 P1
exim4-daemon-heavy (Ubuntu package) - addressed in versions Ubuntu Pro, 4.93-13ubuntu1.8, 4.95-4ubuntu2.3, 4.96-14ubuntu1.2
exim4-daemon-light (Ubuntu package) - addressed in versions Ubuntu Pro, 4.93-13ubuntu1.8, 4.95-4ubuntu2.3, 4.96-14ubuntu1.2
exim4-base (Ubuntu package) - addressed in versions Ubuntu Pro, 4.93-13ubuntu1.8, 4.95-4ubuntu2.3, 4.96-14ubuntu1.2
eximon4 (Ubuntu package) - addressed in versions Ubuntu Pro, 4.93-13ubuntu1.8, 4.95-4ubuntu2.3, 4.96-14ubuntu1.2
exim4 (Ubuntu package) - addressed in versions Ubuntu Pro, 4.93-13ubuntu1.8, 4.95-4ubuntu2.3, 4.96-14ubuntu1.2
exim - update to 4.92-1.39
exim4 (Debian package) - addressed in versions 4.94.2-7+deb11u1, 4.96-15+deb12u2
exim - addressed in versions 4.96.1-1.el7, 4.96.1-1.el8, 4.96.1-1.el9, 4.96.1-1.fc37, 4.96.1-1.fc38, 4.96.1-1.fc39, 4.96.1-1.fc40
mail-mta/exim - update to 4.97.1

External References

Related Security Bulletins