CVE-2023-42116: (0Day) Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability

Published Sep 27, 2023
·
Updated

[Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability]

Other sources

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.

— MITRE

Affected Software

23 affected componentsFixes available
ubuntu/exim4<4.90.1-1ubuntu1.10+
4.90.1-1ubuntu1.10+
ubuntu/exim4<4.93-13ubuntu1.8
4.93-13ubuntu1.8
ubuntu/exim4<4.95-4ubuntu2.3
4.95-4ubuntu2.3
ubuntu/exim4<4.96-14ubuntu1.2
4.96-14ubuntu1.2
ubuntu/exim4<4.96-17ubuntu2
4.96-17ubuntu2
ubuntu/exim4<4.82-3ubuntu2.4+
4.82-3ubuntu2.4+
ubuntu/exim4<4.96.1
4.96.1
ubuntu/exim4<4.86.2-2ubuntu2.6+
4.86.2-2ubuntu2.6+
Exim Exim<4.96.1
Exim Exim
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
alpine/exim<4.96.1-r0
4.96.1-r0
debian/exim4<4.96-15+deb12u2
4.96-15+deb12u2
debian/exim4<4.97~RC1-2
4.97~RC1-2
debian/exim4<4.97~RC1-2
4.97~RC1-2
debian/exim4
4.92-8+deb10u84.94.2-7+deb11u14.96-15+deb12u24.97~RC1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.90.1-1ubuntu1.10+
  2. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.93-13ubuntu1.8
  3. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.95-4ubuntu2.3
  4. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96-14ubuntu1.2
  5. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96-17ubuntu2
  6. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.82-3ubuntu2.4+
  7. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96.1
  8. Upgrade

    Upgrade ubuntu/exim4 to a version that resolves this vulnerability.

    Fixed in 4.86.2-2ubuntu2.6+
  9. Upgrade

    Upgrade alpine/exim to a version that resolves this vulnerability.

    Fixed in 4.96.1-r0
  10. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.96-15+deb12u2
  11. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.97~RC1-2
  12. Upgrade

    Upgrade debian/exim4 to a version that resolves this vulnerability.

    Fixed in 4.92-8+deb10u8Fixed in 4.94.2-7+deb11u1Fixed in 4.96-15+deb12u2Fixed in 4.97~RC1-2

Event History

Sep 27, 2023
Advisory Published
12:00 AM
Data Sourced
12:00 AM
DescriptionSeverityAffected Software
Updated
via ZDI·12:00 AM
Affected Software
Sep 28, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
May 3, 2024
CVE Published
via MITRE·02:13 AM
Data Sourced
via MITRE·02:13 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·03:15 AM
DescriptionSeverityAffected Software
Sep 18, 2024
Updated
via MITRE·06:30 PM
Description
Updated
via NVD·07:15 PM
Description
Aug 7, 2025
Data Sourced
via NVD·06:05 PM
Affected Software
Updated
via NVD·06:05 PM
Severity
Event
via NVD·06:05 PM
Jun 17, 2026
Updated
via NVD·06:23 AM
DescriptionSeverity
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2023-42116?

CVE-2023-42116 is a vulnerability that allows remote attackers to execute arbitrary code on affected installations of Exim.

2

Is authentication required to exploit CVE-2023-42116?

No, authentication is not required to exploit this vulnerability.

3

What is the severity of CVE-2023-42116?

CVE-2023-42116 has a severity rating of 8.1 (high).

4

Which versions of Exim are affected by CVE-2023-42116?

Versions 4.90.1-1ubuntu1.10+ to 4.96.1 of Exim are affected by CVE-2023-42116.

5

How do I fix CVE-2023-42116?

To fix CVE-2023-42116, update your Exim installation to version 4.90.1-1ubuntu1.10+ or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203