CVE-2023-51764

NameCVE-2023-51764
DescriptionPostfix through 3.8.5 allows SMTP smuggling unless configured with smtpd_data_restrictions=reject_unauth_pipelining and smtpd_discard_ehlo_keywords=chunking (or certain other options that exist in recent versions). 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 Postfix supports <LF>.<CR><LF> but some other popular e-mail servers do not. To prevent attack variants (by always disallowing <LF> without <CR>), a different solution is required, such as the smtpd_forbid_bare_newline=yes option with a Postfix minimum version of 3.5.23, 3.6.13, 3.7.9, 3.8.4, or 3.9.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3725-1, ELA-1039-1
Debian Bugs1059230

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
postfix (PTS)jessie, jessie (lts)2.11.3-1+deb8u3fixed
stretch (lts), stretch3.1.15-0+deb9u2fixed
buster (security), buster, buster (lts)3.4.23-0+deb10u2fixed
bullseye3.5.25-0+deb11u1fixed
bookworm3.7.11-0+deb12u1fixed
sid, trixie3.9.0-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
postfixsourcejessie2.11.3-1+deb8u3ELA-1039-1
postfixsourcestretch3.1.15-0+deb9u2ELA-1039-1
postfixsourcebuster3.4.23-0+deb10u2DLA-3725-1
postfixsourcebullseye3.5.23-0+deb11u1
postfixsourcebookworm3.7.9-0+deb12u1
postfixsource(unstable)3.8.4-11059230

Notes

https://sec-consult.com/blog/detail/smtp-smuggling-spoofing-e-mails-worldwide/
https://www.openwall.com/lists/oss-security/2023/12/21/6
https://www.postfix.org/smtp-smuggling.html
https://www.mail-archive.com/postfix-users@postfix.org/msg100901.html
https://lists.debian.org/debian-stable-announce/2023/12/msg00004.html
Short-term Mitigation: smtpd_forbid_unauth_pipelining = yes
Long-term fix with new (optional) feature that is disabled by default:
New setting: smtpd_forbid_bare_newline = yes
https://www.openwall.com/lists/oss-security/2023/12/22/3
Fixes for older releases: https://www.postfix.org/smtp-smuggling.html#back-ports
Patch http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-3.1.15-smuggling-patch.gz [stretch]

Search for package or bug name: Reporting problems