CVE-2023-51764
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | postfix | Fixed | 3.6.4-1ubuntu1.3 | UBUNTU-CVE-2023-51764 |
| Ubuntu 20.04 | postfix | Fixed | 3.4.13-0ubuntu1.4 | UBUNTU-CVE-2023-51764 |
| Ubuntu 18.04 | postfix | Fix pending | 3.3.0-1ubuntu0.4+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-51764 |
| Ubuntu 16.04 | postfix | Fix pending | 3.1.0-3ubuntu0.4+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-51764 |
| Ubuntu 14.04 | postfix | Fix pending | 2.11.0-1ubuntu1.2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-51764 |
| Debian 14 | postfix | Fixed | 3.8.4-1 | DEBIAN-CVE-2023-51764 |
| Debian 13 | postfix | Fixed | 3.8.4-1 | DEBIAN-CVE-2023-51764 |
| Debian 12 | postfix | Fixed | 3.7.9-0+deb12u1 | DEBIAN-CVE-2023-51764 |
| Red Hat Enterprise Linux 9 | postfix | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-cdb | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-ldap | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-lmdb | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-mysql | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-pcre | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-perl-scripts | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-pgsql | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 9 | postfix-sqlite | Fixed | 2:3.5.25-1.el9 | RHSA-2024:9243 |
| Red Hat Enterprise Linux 8 | postfix | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-cdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-ldap | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-mysql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-pcre | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-perl-scripts | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-pgsql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postfix-sqlite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postfix | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postfix-perl-scripts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postfix-sysvinit | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postfix | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postfix-perl-scripts | Will not fix Out of support scope | ||
| AlmaLinux 9 | postfix | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-cdb | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-ldap | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-lmdb | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-mysql | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-pcre | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-perl-scripts | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-pgsql | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| AlmaLinux 9 | postfix-sqlite | Fixed | 2:3.5.25-1.el9 | ALSA-2024:9243 |
| Rocky Linux 9 | postfix | Fixed | 2:3.5.25-1.el9 | RLSA-2024:9243 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://www.postfix.org/smtp-smuggling.html
- https://sec-consult.com/blog/detail/smtp-smuggling-spoofing-e-mails-worldwide/
- http://www.openwall.com/lists/oss-security/2023/12/24/1
- http://www.openwall.com/lists/oss-security/2023/12/25/1
- https://bugzilla.redhat.com/show_bug.cgi?id=2255563
- https://access.redhat.com/security/cve/CVE-2023-51764
- https://fahrplan.events.ccc.de/congress/2023/fahrplan/events/11782.html
- https://github.com/eeenvik1/CVE-2023-51764
- https://github.com/duy-31/CVE-2023-51764
- https://www.youtube.com/watch?v=V8KPV96g1To
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QRLF5SOS7TP5N7FQSEK2NFNB44ISVTZC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JQ5WXFCW2N6G2PH3JXDTYW5PH5EBQEGO/
- https://lwn.net/Articles/956533/
- https://www.openwall.com/lists/oss-security/2024/01/22/1
- https://www.postfix.org/announcements/postfix-3.8.5.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.