CVE-2023-51764 Security feature bypass in n/a

Medium 5.3 Published Updated

Remote attackers can bypass SPF protection and spoof email senders in Postfix if specific SMTP smuggling mitigations are not configured.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-51764?

CVE-2023-51764 is a medium-severity vulnerability in Fedoraproject Fedora, published on 24 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-345

Which versions are affected by CVE-2023-51764?

It affects 3 products.

Linux distribution packages (40)
postfix AlmaLinux:9All versions2:3.5.25-1.el9
postfix-cdb AlmaLinux:9All versions2:3.5.25-1.el9
postfix-ldap AlmaLinux:9All versions2:3.5.25-1.el9
postfix-lmdb AlmaLinux:9All versions2:3.5.25-1.el9
postfix-mysql AlmaLinux:9All versions2:3.5.25-1.el9
postfix-pcre AlmaLinux:9All versions2:3.5.25-1.el9
postfix-perl-scripts AlmaLinux:9All versions2:3.5.25-1.el9
postfix-pgsql AlmaLinux:9All versions2:3.5.25-1.el9
postfix-sqlite AlmaLinux:9All versions2:3.5.25-1.el9
postfix Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-cdb Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-cdb-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-debugsource Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-ldap Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-ldap-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-lmdb Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-lmdb-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-mysql Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-mysql-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-pcre Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-pcre-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-perl-scripts Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-pgsql Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-pgsql-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-sqlite Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix-sqlite-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.5.25-1.el9
postfix Rocky Linux:9All versions2:3.5.25-1.el9
postfix SUSE:Enterprise Storage 7.1All versions3.5.9-150300.5.15.1
postfix-bdb SUSE:Enterprise Storage 7.1All versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions3.5.9-150300.5.15.1
postfix-bdb SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.5.9-150300.5.15.1
postfix-bdb SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.5.9-150300.5.15.1
postfix-bdb SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.5.9-150300.5.15.1
postfix-bdb SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions3.5.9-150300.5.15.1
postfix SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions3.7.3-150500.3.11.1

Products include Fedoraproject Fedora, Postfix Postfix, Redhat Enterprise Linux.

How do I fix CVE-2023-51764?

Change a configuration setting.

Is CVE-2023-51764 being exploited?

There is no known exploitation of CVE-2023-51764 in the wild and no public exploit code.

Public exploit code: 4 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALSA-2024:9243, AZL-32296, AZL-35110, CLSA-2025-1738267482, CLSA-2026-1778834899, CLSA-2026-1778834936 and 13 more.

Is CVE-2023-51764 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free