Cloudanix VulnDB

CVE-2023-42119

Low · 3.1

CVSS

3.1

EPSS

1.6%

Published

May 3, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in email server software could allow someone on the same network to see pieces of internal data that should stay private.

Chainable
Exploitation
Adjacent Network
Attacker needs
None
Complexity
High
Impact
Data Exposure
Component
Network Service
Class
Information Disclosure
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Out-of-bounds read in Exim's dnsdb handling within the SMTP service allows reading past an allocated buffer, disclosing sensitive memory contents to network-adjacent unauthenticated attackers.

Why it matters to the business

Attackers on the same network segment may obtain internal configuration or data fragments from the mail server; combined with additional vulnerabilities this can lead to service compromise and operational disruption.

How an attack unfolds

An attacker on the local network connects to the Exim SMTP listener on TCP 25, supplies crafted input that triggers the dnsdb out-of-bounds read, and extracts leaked memory contents; the disclosed data may then be used to craft follow-on attacks that achieve code execution under the service account.

How to fix it

Upgrade Exim to the commit de76e9b07d0b6e463f0d6c24b3695966218809dd or later; apply the corresponding fixed packages for any affected distributions; restrict network access to TCP 25 to trusted adjacent hosts until patches are deployed.

How to confirm the fix worked

Verify the running Exim binary or source matches the fixed commit de76e9b07d0b6e463f0d6c24b3695966218809dd; attempt reproduction of the out-of-bounds read with a test SMTP transaction and confirm no excess data is returned.

Typical attack path

  1. Locate an Exim instance reachable on the local network segment
  2. Establish an unauthenticated TCP connection to port 25
  3. Send SMTP commands containing data that exercises the vulnerable dnsdb code path
  4. Observe the out-of-bounds memory disclosure in server responses
  5. Leverage obtained information with additional exploits to execute arbitrary code

How to detect it

Review SMTP transaction logs on port 25 for unusual or malformed DNS-related queries; inspect process memory dumps or core files for unexpected buffer contents following SMTP sessions; correlate with network flow data showing repeated connections from adjacent hosts.

What your security team should do

  • Apply the fixed Exim commit immediately on all internet-facing and internal mail servers
  • Restrict SMTP listener access to authorized network segments via firewall rules
  • Monitor for any new public exploit code and reassess EPSS score weekly
  • Audit mail server configurations for unnecessary dnsdb lookups

The record

Exim dnsdb Out-Of-Bounds Read Information Disclosure Vulnerability. This vulnerability allows network-adjacent attackers to disclose sensitive information 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 read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the service account. Was ZDI-CAN-17643.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 exim4 0 No fix
Debian:11 exim4 0 4.94.2-7+deb11u4
Debian:12 exim4 0 4.96-15+deb12u3
Debian:13 exim4 0 4.97~RC2-2
SUSE:Package Hub 15 SP4 exim 0 4.94.2-bp154.2.9.1
SUSE:Package Hub 15 SP5 exim 0 4.94.2-bp155.5.6.1
SUSE:Package Hub 15 SP5 exim 0 4.97.1-bp155.5.9.1
Ubuntu:20.04:LTS exim4 0 4.93-13ubuntu1.9
Ubuntu:22.04:LTS exim4 0 4.95-4ubuntu2.4
Ubuntu:23.10 exim4 0 4.96-17ubuntu2.1
Ubuntu:Pro:14.04:LTS exim4 0 4.82-3ubuntu2.4+esm7
Ubuntu:Pro:16.04:LTS exim4 0 4.86.2-2ubuntu2.6+esm5
Ubuntu:Pro:18.04:LTS exim4 0 4.90.1-1ubuntu1.10+esm2
openSUSE:Leap 15.4 exim 0 4.94.2-bp154.2.9.1
openSUSE:Leap 15.5 exim 0 4.94.2-bp155.5.6.1
openSUSE:Leap 15.5 exim 0 4.97.1-bp155.5.9.1
openSUSE:Tumbleweed exim 0 4.96.2-1.1

Related vulnerabilities