Skip to main content
CVE-2023-42118VulnerabilityPublished Updated

Exim4: Exim libspf2 Integer Underflow Remote Code Execution Vulnerability

Affects exim4Source GCVE Database

0

Not known to be exploited · CVSS 7.5 Critical.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.0 base score
7.5Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
8.4% chance of exploitation in 30 days – higher than 94% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Ubuntu:Pro:14.04:LTSexim4pkg:deb/ubuntu/exim4@4.82-3ubuntu2.4+esm9?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • =4.80-7ubuntu3
  • =4.80-7ubuntu4
  • =4.80-9ubuntu1
  • =4.80-9ubuntu2
  • =4.82-3ubuntu1
  • =4.82-3ubuntu2
  • =4.82-3ubuntu2.1
  • =4.82-3ubuntu2.2
  • =4.82-3ubuntu2.3
  • =4.82-3ubuntu2.4
  • =4.82-3ubuntu2.4+esm1
  • =4.82-3ubuntu2.4+esm2
  • =4.82-3ubuntu2.4+esm3
  • =4.82-3ubuntu2.4+esm4
  • =4.82-3ubuntu2.4+esm6
  • =4.82-3ubuntu2.4+esm7
  • =4.82-3ubuntu2.4+esm8
  • =4.82-3ubuntu2.4+esm9
Fixed in–
Ubuntu:Pro:16.04:LTSexim4pkg:deb/ubuntu/exim4@4.86.2-2ubuntu2.6+esm9?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • =4.86-3ubuntu1
  • =4.86-7ubuntu1
  • =4.86-7ubuntu2
  • =4.86-7ubuntu3
  • =4.86.2-2ubuntu1
  • =4.86.2-2ubuntu2
  • =4.86.2-2ubuntu2.1
  • =4.86.2-2ubuntu2.2
  • =4.86.2-2ubuntu2.3
  • =4.86.2-2ubuntu2.4
  • =4.86.2-2ubuntu2.5
  • =4.86.2-2ubuntu2.6
  • =4.86.2-2ubuntu2.6+esm1
  • =4.86.2-2ubuntu2.6+esm2
  • =4.86.2-2ubuntu2.6+esm4
  • =4.86.2-2ubuntu2.6+esm5
  • =4.86.2-2ubuntu2.6+esm6
  • =4.86.2-2ubuntu2.6+esm7
  • =4.86.2-2ubuntu2.6+esm8
  • =4.86.2-2ubuntu2.6+esm9
Fixed in–
Ubuntu:Pro:16.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-6ubuntu0.1~esm2?arch=source&distro=esm-apps/xenialOther threatsAffected
  • =1.2.10-6
  • =1.2.10-6build1
  • =1.2.10-6ubuntu0.1~esm1
  • =1.2.10-6ubuntu0.1~esm2
Fixed in–
Ubuntu:Pro:18.04:LTSexim4pkg:deb/ubuntu/exim4@4.90.1-1ubuntu1.10+esm6?arch=source&distro=esm-infra/bionicOther threatsAffected
  • =4.89-5ubuntu1
  • =4.89-9ubuntu1
  • =4.89-9ubuntu2
  • =4.89-9ubuntu3
  • =4.89-9ubuntu4
  • =4.90.1-1ubuntu1
  • =4.90.1-1ubuntu1.1
  • =4.90.1-1ubuntu1.2
  • =4.90.1-1ubuntu1.3
  • =4.90.1-1ubuntu1.4
  • =4.90.1-1ubuntu1.5
  • =4.90.1-1ubuntu1.8
  • =4.90.1-1ubuntu1.9
  • =4.90.1-1ubuntu1.10
  • =4.90.1-1ubuntu1.10+esm1
  • =4.90.1-1ubuntu1.10+esm2
  • =4.90.1-1ubuntu1.10+esm3
  • =4.90.1-1ubuntu1.10+esm4
  • =4.90.1-1ubuntu1.10+esm5
  • =4.90.1-1ubuntu1.10+esm6
Fixed in–
Ubuntu:Pro:18.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-7ubuntu0.18.04.1~esm1?arch=source&distro=esm-apps/bionicOther threatsAffected
  • =1.2.10-7build2
  • =1.2.10-7ubuntu0.18.04.1~esm1
Fixed in–
Ubuntu:Pro:20.04:LTSexim4pkg:deb/ubuntu/exim4@4.93-13ubuntu1.12+esm1?arch=source&distro=esm-infra/focalOther threatsAffected
  • =4.92.1-1ubuntu3
  • =4.92.1-1ubuntu4
  • =4.93~RC2-1ubuntu1
  • =4.93-9ubuntu1
  • =4.93-11ubuntu1
  • =4.93-12ubuntu1
  • =4.93-13ubuntu1
  • =4.93-13ubuntu1.1
  • =4.93-13ubuntu1.5
  • =4.93-13ubuntu1.6
  • =4.93-13ubuntu1.7
  • =4.93-13ubuntu1.8
  • =4.93-13ubuntu1.9
  • =4.93-13ubuntu1.10
  • =4.93-13ubuntu1.11
  • =4.93-13ubuntu1.12
  • =4.93-13ubuntu1.12+esm1
Fixed in–
Ubuntu:20.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-7+deb9u2build0.20.04.1?arch=source&distro=focalOther threatsAffected
  • =1.2.10-7build3
  • =1.2.10-7build4
  • =1.2.10-7+deb9u2build0.20.04.1
Fixed in–
Ubuntu:22.04:LTSexim4pkg:deb/ubuntu/exim4@4.95-4ubuntu2.11?arch=source&distro=jammyOther threatsAffected
  • =4.94.2-7ubuntu2
  • =4.95-2ubuntu2
  • =4.95-4ubuntu1
  • =4.95-4ubuntu2
  • =4.95-4ubuntu2.1
  • =4.95-4ubuntu2.2
  • =4.95-4ubuntu2.3
  • =4.95-4ubuntu2.4
  • =4.95-4ubuntu2.5
  • =4.95-4ubuntu2.6
  • =4.95-4ubuntu2.7
  • =4.95-4ubuntu2.8
  • =4.95-4ubuntu2.9
  • =4.95-4ubuntu2.10
  • =4.95-4ubuntu2.11
Fixed in–
Ubuntu:22.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-7.1ubuntu1?arch=source&distro=jammyOther threatsAffected
  • =1.2.10-7.1
  • =1.2.10-7.1ubuntu1
Fixed in–
Ubuntu:24.04:LTSexim4pkg:deb/ubuntu/exim4@4.97-4ubuntu4.7?arch=source&distro=nobleOther threatsAffected
  • =4.96-17ubuntu2
  • =4.96-17ubuntu2.1
  • =4.97-3ubuntu1
  • =4.97-4ubuntu1
  • =4.97-4ubuntu3
  • =4.97-4ubuntu4
  • =4.97-4ubuntu4.1
  • =4.97-4ubuntu4.2
  • =4.97-4ubuntu4.3
  • =4.97-4ubuntu4.4
  • =4.97-4ubuntu4.5
  • =4.97-4ubuntu4.6
  • =4.97-4ubuntu4.7
Fixed in–
Ubuntu:24.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-8.1ubuntu3?arch=source&distro=nobleOther threatsAffected
  • =1.2.10-7.2build1
  • =1.2.10-8
  • =1.2.10-8build1
  • =1.2.10-8.1ubuntu2
  • =1.2.10-8.1ubuntu3
Fixed in–
Ubuntu:25.10exim4pkg:deb/ubuntu/exim4@4.98.2-1ubuntu2.3?arch=source&distro=questingOther threatsAffected
  • =4.98.1-1ubuntu2
  • =4.98.2-1ubuntu1
  • =4.98.2-1ubuntu2
  • =4.98.2-1ubuntu2.1
  • =4.98.2-1ubuntu2.2
  • =4.98.2-1ubuntu2.3
Fixed in–
Ubuntu:25.10libspf2pkg:deb/ubuntu/libspf2@1.2.10-8.3?arch=source&distro=questingOther threatsAffected
  • =1.2.10-8.3
Fixed in–
Ubuntu:26.04:LTSexim4pkg:deb/ubuntu/exim4@4.99.1-1ubuntu1.4?arch=source&distro=resoluteOther threatsAffected
  • =4.98.2-1ubuntu2
  • =4.99-4ubuntu1
  • =4.99.1-1ubuntu1
  • =4.99.1-1ubuntu1.1
  • =4.99.1-1ubuntu1.2
  • =4.99.1-1ubuntu1.3
  • =4.99.1-1ubuntu1.4
Fixed in–
Ubuntu:26.04:LTSlibspf2pkg:deb/ubuntu/libspf2@1.2.10-9?arch=source&distro=resoluteOther threatsAffected
  • =1.2.10-8.3
  • =1.2.10-8.4
  • =1.2.10-9
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until official patches are available, restrict network access to the Exim service to trusted sources only and monitor for unusual activity related to SPF processing. Avoid exposing vulnerable versions to untrusted networks.

Description

A vulnerability in Exim libspf2 allows network-adjacent attackers to execute arbitrary code without authentication. The flaw is an integer underflow in SPF macro parsing that leads to memory corruption and remote code execution in the context of the service account. Multiple specific Exim4 package versions on Ubuntu are affected.

References

Community reviews

Loading reviews…