libspf2 — security advisory
Exim libspf2 Integer Underflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Exim libspf2. Authentication is not required to exploit this vulnerability. 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. . Was ZDI-CAN-17578.
- Products
- libspf2
- Affected versions
- Not specified
- Fixed versions
- 1.2.11-r3
- CVEs
- CVE-2023-42118
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:00 UTC · Revision 1
Source evidence
Exim libspf2 Integer Underflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Exim libspf2. Authentication is not required to exploit this vulnerability. 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. . Was ZDI-CAN-17578.
osv:ALPINE-CVE-2023-42118
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
libspf2
Fixed versions: 1.2.11-r3
Complete source record
{
"id": "5d58be2ed71a3e45439e102ce0f037e68c580d4ad4d411d552d22ea6f5be4e87",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2023-42118",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2023-42118",
"summary": "Exim libspf2 Integer Underflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Exim libspf2. Authentication is not required to exploit this vulnerability. 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. . Was ZDI-CAN-17578.",
"evidence": "osv:ALPINE-CVE-2023-42118",
"products": [
{
"name": {
"value": "libspf2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libspf2",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.11-r3",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2023-42118",
"aliases": [
"ALPINE-CVE-2023-42118"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.18"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.19"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.20"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.21"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.22"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.23"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.11-r3"
}
]
}
],
"package": {
"name": "libspf2",
"purl": "pkg:apk/alpine/libspf2?arch=source",
"ecosystem": "Alpine:v3.24"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-42118.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-26T17:17:58.639297434Z",
"provider": "osv",
"upstream": [
"CVE-2023-42118"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2023-42118"
]
},
"related_cves": [
{
"value": "CVE-2023-42118",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 454491,
"published_at": "2024-05-03T03:15:50.643+00:00"
}