Exim4: Exim libspf2 Integer Underflow Remote Code Execution Vulnerability.
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.
AI Analysis
Technical Summary
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.
Exim4: Exim libspf2 Integer Underflow Remote Code Execution Vulnerability.
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
Affected software
pkg:deb/ubuntu/[email protected]+esm9?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/[email protected]+esm9?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/[email protected]~esm2?arch=source&distro=esm-apps/xenialpkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/[email protected]+esm1?arch=source&distro=esm-infra/focalpkg:deb/ubuntu/[email protected]+deb9u2build0.20.04.1?arch=source&distro=focalpkg:deb/ubuntu/[email protected]?arch=source&distro=jammypkg:deb/ubuntu/[email protected]?arch=source&distro=jammypkg:deb/ubuntu/[email protected]?arch=source&distro=noblepkg:deb/ubuntu/[email protected]?arch=source&distro=noblepkg:deb/ubuntu/[email protected]?arch=source&distro=questingpkg:deb/ubuntu/[email protected]?arch=source&distro=resolutepkg:deb/ubuntu/[email protected]?arch=source&distro=resoluteRun 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.