Skip to main content
EPSS 51.8%top 1.1%

Exim4: Exim libspf2 Integer Underflow Remote Code Execution Vulnerability.

0
Critical
Published: 05/03/2024 (05/03/2024, 03:15:00 UTC)
Source: GCVE Database
Product: exim4

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.

CVSS v3.0

Score 7.5high

Attack Vector
Adjacent Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]+esm9?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=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
Ubuntu:Pro:16.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]+esm9?arch=source&distro=esm-infra-legacy/xenial
Affected versions
=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
Ubuntu:Pro:16.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]~esm2?arch=source&distro=esm-apps/xenial
Affected versions
=1.2.10-6=1.2.10-6build1=1.2.10-6ubuntu0.1~esm1=1.2.10-6ubuntu0.1~esm2
Ubuntu:Pro:18.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=esm-infra/bionic
Affected versions
=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
Ubuntu:Pro:18.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/bionic
Affected versions
=1.2.10-7build2=1.2.10-7ubuntu0.18.04.1~esm1
Ubuntu:Pro:20.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]+esm1?arch=source&distro=esm-infra/focal
Affected versions
=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
Ubuntu:20.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]+deb9u2build0.20.04.1?arch=source&distro=focal
Affected versions
=1.2.10-7build3=1.2.10-7build4=1.2.10-7+deb9u2build0.20.04.1
Ubuntu:22.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]?arch=source&distro=jammy
Affected versions
=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
Ubuntu:22.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]?arch=source&distro=jammy
Affected versions
=1.2.10-7.1=1.2.10-7.1ubuntu1
Ubuntu:24.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]?arch=source&distro=noble
Affected versions
=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
Ubuntu:24.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]?arch=source&distro=noble
Affected versions
=1.2.10-7.2build1=1.2.10-8=1.2.10-8build1=1.2.10-8.1ubuntu2=1.2.10-8.1ubuntu3
Ubuntu:25.10more threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]?arch=source&distro=questing
Affected versions
=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
Ubuntu:25.10more threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]?arch=source&distro=questing
Affected versions
=1.2.10-8.3
Ubuntu:26.04:LTSmore threats →ghsa
exim4
pkg:deb/ubuntu/[email protected]?arch=source&distro=resolute
Affected versions
=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
Ubuntu:26.04:LTSmore threats →ghsa
libspf2
pkg:deb/ubuntu/[email protected]?arch=source&distro=resolute
Affected versions
=1.2.10-8.3=1.2.10-8.4=1.2.10-9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 00:02:00 UTC

Technical Analysis

This vulnerability in Exim libspf2 arises from improper validation of user-supplied data during SPF macro parsing, causing an integer underflow before memory writes. Exploitation allows remote code execution by network-adjacent attackers without requiring authentication. The vulnerability affects numerous specific Exim4 package versions on Ubuntu. No known exploits in the wild have been reported. The CVSS 3.0 vector indicates a network attack vector with high impact on confidentiality, integrity, and availability, but high attack complexity and no privileges or user interaction required.

Potential Impact

Successful exploitation results in arbitrary code execution with the privileges of the Exim service account, potentially compromising confidentiality, integrity, and availability of the affected system. The vulnerability can be exploited remotely by attackers without authentication, increasing the risk to exposed mail servers running vulnerable versions.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2023-42118
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
Cvss Version
3.0

Threat ID: 6a6151299c2644c7f8da6dcc

Added to database: 07/22/2026, 23:24:25 UTC

Last enriched: 07/23/2026, 00:02:00 UTC

Last updated: 09/10/2026, 19:24:53 UTC

Views: 41

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses