Cloudanix VulnDB

CVE-2023-51764

Medium · 5.3

CVSS

5.3

EPSS

2.6%

Published

Dec 24, 2023

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in email server software lets attackers fake the sender of messages to get around protections against spam and phishing.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Network Service
Class
Improper Input Validation
Remediation
Config Change
Effort
Low
Patch risk
Low

What it actually does

The vulnerability allows remote attackers to inject email messages with spoofed MAIL FROM addresses by exploiting SMTP smuggling via bare newline characters, bypassing SPF checks.

Why it matters to the business

Organizations may receive or relay spoofed emails that evade authentication mechanisms, increasing the risk of phishing attacks and damaging trust in email communications.

How an attack unfolds

An attacker crafts SMTP data with <LF>.<CR><LF> sequences to smuggle additional commands, injecting messages with forged sender addresses that other servers may not reject.

How to fix it

Configure smtpd_data_restrictions=reject_unauth_pipelining and smtpd_discard_ehlo_keywords=chunking, or enable smtpd_forbid_bare_newline=yes in versions 3.5.23, 3.6.13, 3.7.9, 3.8.4, or 3.9 and later.

How to confirm the fix worked

Test SMTP interactions to ensure bare newlines are rejected and check configuration for the specified restrictions.

Typical attack path

  1. Identify a Postfix server without the recommended restrictions
  2. Craft SMTP session with pipelined commands using bare newlines
  3. Inject email with spoofed MAIL FROM
  4. Bypass SPF validation on receiving servers

How to detect it

Review SMTP logs for unusual pipelining or bare newline usage in email transactions.

What your security team should do

  • Apply the configuration changes immediately
  • Upgrade Postfix to a supported version with the bare newline option
  • Monitor for unusual email patterns

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 postfix 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-cdb 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-ldap 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-lmdb 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-mysql 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-pcre 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-perl-scripts 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-pgsql 0 2:3.5.25-1.el9
AlmaLinux:9 postfix-sqlite 0 2:3.5.25-1.el9
Debian:10 postfix 0 3.4.23-0+deb10u2
Debian:11 postfix 0 3.5.23-0+deb11u1
Debian:12 postfix 0 3.7.9-0+deb12u1
Debian:13 postfix 0 3.8.4-1
Debian:14 postfix 0 3.8.4-1
Mageia:9 postfix 0 3.8.4-1.mga9
Red Hat:enterprise_linux:9::appstream postfix 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-cdb 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-cdb-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-debugsource 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-ldap 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-ldap-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-lmdb 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-lmdb-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-mysql 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-mysql-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-pcre 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-pcre-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-perl-scripts 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-pgsql 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-pgsql-debuginfo 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-sqlite 0 2:3.5.25-1.el9
Red Hat:enterprise_linux:9::appstream postfix-sqlite-debuginfo 0 2:3.5.25-1.el9
Rocky Linux:9 postfix 0 2:3.5.25-1.el9
SUSE:Enterprise Storage 7.1 postfix 0 3.5.9-150300.5.15.1
SUSE:Enterprise Storage 7.1 postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 postfix 0 3.7.3-150500.3.11.1
SUSE:Linux Enterprise Module for Legacy 15 SP4 postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Module for Legacy 15 SP5 postfix-bdb 0 3.7.3-150500.3.11.1
SUSE:Linux Enterprise Module for Server Applications 15 SP4 postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Module for Server Applications 15 SP5 postfix 0 3.7.3-150500.3.11.1
SUSE:Linux Enterprise Real Time 15 SP4 postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server 12 SP5 postfix 0 3.2.10-3.30.1
SUSE:Linux Enterprise Server 15 SP3-LTSS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server 15 SP3-LTSS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server 15 SP4-LTSS postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server 15 SP4-LTSS postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 postfix 0 3.2.10-3.30.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 postfix 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 postfix-bdb 0 3.5.9-150300.5.15.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 postfix 0 3.2.10-3.30.1
SUSE:Manager Proxy 4.3 postfix 0 3.5.9-150300.5.15.1
SUSE:Manager Server 4.3 postfix 0 3.5.9-150300.5.15.1
Ubuntu:20.04:LTS postfix 0 3.4.13-0ubuntu1.4
Ubuntu:20.04:LTS postfix 0 3.4.13-0ubuntu1.3
Ubuntu:22.04:LTS postfix 0 3.6.4-1ubuntu1.3
Ubuntu:22.04:LTS postfix 0 3.6.4-1ubuntu1.2
Ubuntu:23.10 postfix 0 3.8.1-2ubuntu0.1
Ubuntu:23.10 postfix 0 3.8.1-2ubuntu0.2
Ubuntu:Pro:14.04:LTS postfix 0 2.11.0-1ubuntu1.2+esm3
Ubuntu:Pro:14.04:LTS postfix 0 2.11.0-1ubuntu1.2+esm2
Ubuntu:Pro:16.04:LTS postfix 0 3.1.0-3ubuntu0.4+esm3
Ubuntu:Pro:16.04:LTS postfix 0 3.1.0-3ubuntu0.4+esm2
Ubuntu:Pro:18.04:LTS postfix 0 3.3.0-1ubuntu0.4+esm3
Ubuntu:Pro:18.04:LTS postfix 0 3.3.0-1ubuntu0.4+esm2
openSUSE:Leap 15.4 postfix 0 3.5.9-150300.5.15.1
openSUSE:Leap 15.4 postfix-bdb 0 3.5.9-150300.5.15.1
openSUSE:Leap 15.5 postfix 0 3.7.3-150500.3.11.1
openSUSE:Leap 15.5 postfix-bdb 0 3.7.3-150500.3.11.1
openSUSE:Tumbleweed postfix 0 3.8.4-2.1

Related vulnerabilities