CVE-2023-51764: Medium severity Postfix Postfix vulnerability

Published Dec 21, 2023
·
Updated

Last updated 24 July 2024

Other sources

Postfix through 3.8.5 allows SMTP smuggling unless configured with smtpddatarestrictions=rejectunauthpipelining and smtpddiscardehlokeywords=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 smtpdforbidbarenewline=yes option with a Postfix minimum version of 3.5.23, 3.6.13, 3.7.9, 3.8.4, or 3.9.

Launchpad

Summary: Depending on how SMTP servers/software are configured to interpret the end-of-data sequence (e.g., <CR><LF>.<CR><LF>), an attacker can break out of the message data to "smuggle" SMTP commands to send spoofed emails that pass SPF checks.

Description: By exploiting interpretation differences of the SMTP protocol, it is possible to smuggle/send spoofed e-mails - hence SMTP smuggling - while still passing SPF alignment checks. During this research, two types of SMTP smuggling, outbound and inbound, were discovered. These allowed sending spoofed e-mails from millions of domains (e.g., admin[@]outlook.com) to millions of receiving SMTP servers (e.g., Amazon, PayPal, eBay). Identified vulnerabilities in Microsoft and GMX were quickly fixed, however, SEC Consult urges companies using the also affected Cisco Secure Email product to manually update their vulnerable default configuration.

References: https://sec-consult.com/blog/detail/smtp-smuggling-spoofing-e-mails-worldwide/ https://www.mail-archive.com/postfix-users@postfix.org/msg100901.html https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059230

Red Hat

Affected Software

14 affected componentsFixes available
debian/postfix<=3.8.2-1, <=3.4.23-0+deb10u1, <=3.7.6-0+deb12u2, <=3.5.18-0+deb11u1
3.8.4-13.7.9-0+deb12u13.5.23-0+deb11u1
Postfix Postfix<3.5.23
Postfix Postfix>=3.6.0<3.6.13
Postfix Postfix>=3.7.0<3.7.9
Postfix Postfix>=3.8.0<3.8.4
Fedoraproject Fedora=38
Fedoraproject Fedora=39
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat/postfix<3.8.4
3.8.4
redhat/postfix<3.7.9
3.7.9
redhat/postfix<3.6.13
3.6.13
redhat/postfix<3.5.23
3.5.23
debian/postfix
3.5.25-0+deb11u13.7.11-0+deb12u13.10.5-1~deb13u13.10.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/postfix to a version that resolves this vulnerability.

    Fixed in 3.8.4-1Fixed in 3.7.9-0+deb12u1Fixed in 3.5.23-0+deb11u1
  2. Upgrade

    Upgrade redhat/postfix to a version that resolves this vulnerability.

    Fixed in 3.8.4
  3. Upgrade

    Upgrade redhat/postfix to a version that resolves this vulnerability.

    Fixed in 3.7.9
  4. Upgrade

    Upgrade redhat/postfix to a version that resolves this vulnerability.

    Fixed in 3.6.13
  5. Upgrade

    Upgrade redhat/postfix to a version that resolves this vulnerability.

    Fixed in 3.5.23
  6. Upgrade

    Upgrade debian/postfix to a version that resolves this vulnerability.

    Fixed in 3.5.25-0+deb11u1Fixed in 3.7.11-0+deb12u1Fixed in 3.10.5-1~deb13u1Fixed in 3.10.6-1
  7. Upgrade

    Upgrade Postfix to a version that resolves this vulnerability.

    Fixed in 3.5.23
  8. Upgrade

    Upgrade Postfix to a version that resolves this vulnerability.

    Fixed in 3.6.13
  9. Upgrade

    Upgrade Postfix to a version that resolves this vulnerability.

    Fixed in 3.7.9
  10. Upgrade

    Upgrade Postfix to a version that resolves this vulnerability.

    Fixed in 3.8.4
  11. Upgrade

    Upgrade Postfix to a version that resolves this vulnerability.

    Fixed in 3.9
  12. Configuration

    Set Postfix parameter smtpd_forbid_bare_newline = normalize to prevent SMTP smuggling variants that exploit <LF>.<CR><LF> interpretation differences. Apply alongside patched versions noted below.

    Postfix smtpd_forbid_bare_newline = normalize
  13. Configuration

    Set smtpd_forbid_bare_newline_exclusions = $mynetworks in Postfix so that bare-newline normalization exclusions apply to $mynetworks as specified in the fix instructions.

    Postfix smtpd_forbid_bare_newline_exclusions = $mynetworks

Event History

Dec 21, 2023
Data Sourced
via Red Hat·09:58 PM
DescriptionSeverityAffected Software
Dec 24, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeaknessAffected Software
Jun 26, 2024
Data Sourced
via Launchpad·01:56 PM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·02:08 PM
RemedyDescriptionSeverityAffected Software
Dec 1, 2025
Data Sourced
via Debian·07:44 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-51764?

CVE-2023-51764 is considered a medium severity vulnerability due to the potential for SMTP smuggling attacks.

2

How do I fix CVE-2023-51764?

To mitigate CVE-2023-51764, configure Postfix with smtpd_data_restrictions set to reject_unauth_pipelining and smtpd_discard_ehlo_keywords set to chunking.

3

What versions of Postfix are affected by CVE-2023-51764?

CVE-2023-51764 affects Postfix versions up to and including 3.8.5.

4

Can CVE-2023-51764 be exploited remotely?

Yes, CVE-2023-51764 allows remote attackers to exploit the vulnerability using established techniques.

5

What impact does CVE-2023-51764 have on SMTP security?

CVE-2023-51764 can compromise SMTP security by allowing unauthorized access and potential email spoofing through manipulation of the SMTP protocol.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203