Skip to content
OpenAdvisories
Unscored Public exploit CVE-2023-51764 EUVD-2023-56453GHSA-j5jm-hg4x-w8rx

Postfix through 3.8.5 allows SMTP smuggling unless configured with smtpd_data_restrictions=reject_unauth_pipelining and smtpd_discard_ehlo_…

Published Dec 24, 2023 · Updated Oct 8, 2026 · Assigned by mitre

Description

Postfix 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 postfix 3.8.4-1 —
Debian 13 postfix 3.8.4-1 —
Debian 12 postfix 3.7.9-0+deb12u1 —
Debian 10 postfix 3.4.23-0+deb10u2 DLA-3725-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS postfix 3.6.4-1ubuntu1.3 USN-6591-2, USN-6591-1
Ubuntu 20.04 LTS postfix 3.4.13-0ubuntu1.4 USN-6591-2, USN-6591-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS postfix 3.3.0-1ubuntu0.4+esm3 USN-6591-2, USN-6591-1
Ubuntu Pro 16.04 LTS postfix 3.1.0-3ubuntu0.4+esm3 USN-6591-2, USN-6591-1
Ubuntu Pro 14.04 LTS postfix 2.11.0-1ubuntu1.2+esm3 USN-6591-2, USN-6591-1
ReleasePackageFixed inAdvisory
RHEL 9 postfix +8 2:3.5.25-1.el9 RHSA-2024:9243

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 postfix +8 2:3.5.25-1.el9 ALSA-2024:9243

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 postfix 2:3.5.25-1.el9 RLSA-2024:9243
ReleasePackageFixed inAdvisory
SLES 15 SP5 postfix +1 3.7.3-150500.3.11.1 SUSE-SU-2023:4981-1
SLES 15 SP4 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLES 15 SP3 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLES 12 SP5 postfix 3.2.10-3.30.1 SUSE-SU-2024:1149-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLES for SAP 15 SP3 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLES for SAP 12 SP5 postfix 3.2.10-3.30.1 SUSE-SU-2024:1149-1
SLE Real Time 15 SP4 postfix 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLE HPC 15 SP4 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SLE HPC 15 SP3 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SUSE Manager Server 4.3 postfix 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SUSE Manager Proxy 4.3 postfix 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
SUSE Enterprise Storage 7.1 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postfix 3.8.4-2.1 openSUSE-SU-2024:13538-1
openSUSE Leap 15.5 postfix +1 3.7.3-150500.3.11.1 SUSE-SU-2023:4981-1
openSUSE Leap 15.4 postfix +1 3.5.9-150300.5.15.1 SUSE-SU-2024:0012-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 postfix +8 2:3.7.2-4.amzn2023.0.5 ALAS2023-2024-495
Amazon Linux 2 postfix +2 2:2.10.1-6.amzn2.0.4 ALAS2-2024-2420

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 postfix 3.9.0-1 —
Azure Linux 2 (CBL-Mariner) postfix 3.7.0-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 postfix +8 2:3.5.25-1.el9 ELSA-2024-9243

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 4 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 15

References