CVE-2023-51766
Exim before 4.97.1 allows SMTP smuggling in certain PIPELINING/CHUNKING configurations
Check your servers for CVE-2023-51766
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-51766 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Exim before 4.97.1 allows SMTP smuggling in certain PIPELINING/CHUNKING configurations. Remote attackers can use a published exploitation technique to inject e-mail messages with a spoofed MAIL FROM address, allowing bypass of an SPF protection mechanism. This occurs because Exim supports <LF>.<CR><LF> but some other popular e-mail servers do not.
Exploitation
EPSS 1.10%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 66.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-51766 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-51766RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-51766Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-51766
trivy image --scanners vuln IMAGE | grep CVE-2023-51766
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2024-1ef6197a49 lists.fedoraproject.org · vendor advisory
- FEDORA-2024-e0841c83bb lists.fedoraproject.org · vendor advisory
Other references
- https://sec-consult.com/blog/detail/smtp-smuggling-spoofing-e-mails-worldwide/ sec-consult.com
- https://exim.org/static/doc/security/CVE-2023-51766.txt exim.org
- https://bugs.exim.org/show_bug.cgi?id=3063 bugs.exim.org
- https://www.openwall.com/lists/oss-security/2023/12/23/2 openwall.com
- [oss-security] 20231224 Re: Re: New SMTP smuggling attack openwall.com · mailing list
- [oss-security] 20231225 Re: Re: New SMTP smuggling attack openwall.com · mailing list
- https://git.exim.org/exim.git/commit/5bb786d5ad568a88d50d15452aacc8404047e5ca git.exim.org
- https://git.exim.org/exim.git/commit/cf1376206284f2a4f11e32d931d4aade34c206c5 git.exim.org
- https://bugzilla.redhat.com/show_bug.cgi?id=2255852 bugzilla.redhat.com
- https://fahrplan.events.ccc.de/congress/2023/fahrplan/events/11782.html fahrplan.events.ccc.de
- [oss-security] 20231229 CVE-2023-51766: Exim: SMTP smuggling openwall.com · mailing list
- https://github.com/Exim/exim/blob/master/doc/doc-txt/cve-2023-51766 github.com
8 more
- [oss-security] 20240101 Re: CVE-2023-51766: Exim: SMTP smuggling openwall.com · mailing list
- [oss-security] 20240101 Re: CVE-2023-51766: Exim: SMTP smuggling openwall.com · mailing list
- [oss-security] 20240101 Re: CVE-2023-51766: Exim: SMTP smuggling openwall.com · mailing list
- https://www.youtube.com/watch?v=V8KPV96g1To youtube.com
- [debian-lts-announce] 20240105 [SECURITY] [DLA 3708-1] exim4 security update lists.debian.org · mailing list
- https://lwn.net/Articles/956533/ lwn.net
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORN7OKEQPPBKUHYRQ6LR5PSNBQVDHAWB/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPDWHJPABVJCXDSNELSSVTIVAJU2MDUQ/ lists.fedoraproject.org
Source: the record CVE-2023-51766 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse