| Reporter | Title | Published | Views | Family All 49 |
|---|---|---|---|---|
| libspf2 -- Integer Underflow Remote Code Execution | 6 Jun 202200:00 | – | freebsd | |
| CVE-2023-42118 | 3 May 202402:13 | – | alpinelinux | |
| Astra Linux – Vulnerability in libspf2 | 16 Jun 202511:28 | – | astralinux | |
| The vulnerability of the libspf2 library used by the Exim mail server allows attackers to execute arbitrary code. | 4 Oct 202300:00 | – | bdu_fstec | |
| CVE-2023-42118 vulnerabilities | 3 May 202403:15 | – | cgr | |
| CVE-2023-42118 | 2 Oct 202313:05 | – | circl | |
| libspf2 Security Vulnerabilities | 27 Sep 202300:00 | – | cnnvd | |
| CVE-2023-42118 | 3 May 202402:13 | – | cve | |
| CVE-2023-42118 Exim libspf2 Integer Underflow Remote Code Execution Vulnerability | 3 May 202402:13 | – | cvelist | |
| CVE-2023-42118 | 3 May 202402:13 | – | debiancve |
# SPDX-FileCopyrightText: 2023 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:exim:exim";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.151116");
script_version("2025-08-08T05:44:56+0000");
script_tag(name:"last_modification", value:"2025-08-08 05:44:56 +0000 (Fri, 08 Aug 2025)");
# nb: This was initially a single VT but got split later into multiple due to different affected /
# fixed versions. To avoid wrong stats about CVE coverage the "creation_date" of the original VT
# has been kept here because all CVEs had been covered at this time.
script_tag(name:"creation_date", value:"2023-09-29 04:31:53 +0000 (Fri, 29 Sep 2023)");
script_tag(name:"cvss_base", value:"8.3");
script_tag(name:"cvss_base_vector", value:"AV:A/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2025-08-07 18:17:31 +0000 (Thu, 07 Aug 2025)");
script_cve_id("CVE-2023-42118");
# TODO: needs to be adjusted once a fix is available, see also note below.
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"WillNotFix");
script_name("Exim <= 4.96.2 libspf2 RCE Vulnerability (Sep 2023)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2023 Greenbone AG");
script_family("General");
script_dependencies("gb_exim_smtp_detect.nasl");
script_mandatory_keys("exim/detected");
script_tag(name:"summary", value:"Exim is prone to a remote code execution (RCE) vulnerability
in the used libspf2 library.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The specific flaw exists within the parsing of SPF macros. When
parsing SPF macros, the process does not properly validate user-supplied data, which can result
in an integer underflow before writing to memory. An attacker can leverage this vulnerability to
execute code in the context of the service account.");
script_tag(name:"solution", value:"No known solution was made available for at least one year since
the disclosure of this vulnerability. Likely none will be provided anymore. General solution options
are to upgrade to a newer release, disable respective features, remove the product or replace the
product by another one.
Notes:
- The actual fix needs to be done in the underlying libspf2 library but not clear information from
vendor side is available (see linked GitHub issue below)
- As a workaround do not use the 'spf' lookup type or the 'spf' ACL condition
- Please create an override for this result if you think the system is not affected");
script_xref(name:"URL", value:"https://www.exim.org/static/doc/security/CVE-2023-zdi.txt");
script_xref(name:"URL", value:"https://www.zerodayinitiative.com/advisories/ZDI-23-1472/");
# nb: This issue should be re-checked in the future but so far it is not clear if this has been
# fixed.
script_xref(name:"URL", value:"https://github.com/shevek/libspf2/issues/45");
script_xref(name:"URL", value:"https://www.openwall.com/lists/oss-security/2023/09/29/5");
script_xref(name:"URL", value:"https://bugzilla.suse.com/show_bug.cgi?id=1215788");
script_xref(name:"URL", value:"https://bugzilla.redhat.com/show_bug.cgi?id=2241535");
script_xref(name:"URL", value:"https://www.openwall.com/lists/oss-security/2023/10/05/12");
script_xref(name:"URL", value:"https://www.openwall.com/lists/oss-security/2023/10/15/2");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!version = get_app_version(cpe: CPE, port: port))
exit(0);
report = report_fixed_ver(installed_version: version, fixed_version: "None");
security_message(port: port, data: report);
exit(0);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation