Command Injection in Postfix - CVE-2023-51764
Published: December 24, 2023 / Updated: October 9, 2024
Vulnerability identifier: #VU84727
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-51764
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerability details
The vulnerability allows a remote attacker to spoof email messages.
The vulnerability exists due to an error when handling line endings other than <CR><LF>. A remote attacker can spoof contents of email message and bypass SPF protection mechanism.
Affected software
Postfix
Amazon Linux AMI
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Ubuntu
Slackware Linux
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
Server Applications Module
Legacy Module
Basesystem Module
openSUSE Leap
Anolis OS
Fedora
postfix (Ubuntu package)
postfix
postfix-doc
postfix-mysql-debuginfo
postfix-mysql
postfix-devel
postfix-debugsource
postfix-debuginfo
postfix-bdb-debuginfo
postfix-bdb-lmdb
postfix-bdb
postfix-bdb-lmdb-debuginfo
postfix-ldap
postfix-bdb-debugsource
postfix-ldap-debuginfo
postfix-postgresql
postfix-postgresql-debuginfo
postfix (Red Hat package)
postfix-lmdb
postfix-sqlite
postfix-pcre
postfix-perl-scripts
postfix-pgsql
postfix-cdb
Amazon Linux AMI
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Ubuntu
Slackware Linux
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
Server Applications Module
Legacy Module
Basesystem Module
openSUSE Leap
Anolis OS
Fedora
postfix (Ubuntu package)
postfix
postfix-doc
postfix-mysql-debuginfo
postfix-mysql
postfix-devel
postfix-debugsource
postfix-debuginfo
postfix-bdb-debuginfo
postfix-bdb-lmdb
postfix-bdb
postfix-bdb-lmdb-debuginfo
postfix-ldap
postfix-bdb-debugsource
postfix-ldap-debuginfo
postfix-postgresql
postfix-postgresql-debuginfo
postfix (Red Hat package)
postfix-lmdb
postfix-sqlite
postfix-pcre
postfix-perl-scripts
postfix-pgsql
postfix-cdb
How to mitigate CVE-2023-51764
Install updates from vendor's website.
Postfix - addressed in versions 3.5.23, 3.6.13, 3.7.9, 3.8.4
postfix (Ubuntu package) - addressed in versions Ubuntu Pro, 3.4.13-0ubuntu1.3, 3.4.13-0ubuntu1.4, 3.6.4-1ubuntu1.2, 3.6.4-1ubuntu1.3, 3.8.1-2ubuntu0.1, 3.8.1-2ubuntu0.2
postfix - addressed in versions 2.6.6-2.17, 3.7.2-4
postfix-doc - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-mysql-debuginfo - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-mysql - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-devel - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-debugsource - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-debuginfo - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-lmdb - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-lmdb-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-ldap - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-debugsource - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-ldap-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-postgresql - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-postgresql-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix (Red Hat package) - update to 3.5.25-1.el9
postfix - addressed in versions 3.6.13, 3.6.14
postfix-lmdb - update to 3.7.9-1
postfix-mysql - update to 3.7.9-1
postfix-sqlite - update to 3.7.9-1
postfix-pcre - update to 3.7.9-1
postfix-perl-scripts - update to 3.7.9-1
postfix-pgsql - update to 3.7.9-1
postfix-ldap - update to 3.7.9-1
postfix-cdb - update to 3.7.9-1
postfix - update to 3.7.9-1
postfix - addressed in versions 3.7.9-1.fc38, 3.8.4-1.fc39
postfix (Ubuntu package) - addressed in versions Ubuntu Pro, 3.4.13-0ubuntu1.3, 3.4.13-0ubuntu1.4, 3.6.4-1ubuntu1.2, 3.6.4-1ubuntu1.3, 3.8.1-2ubuntu0.1, 3.8.1-2ubuntu0.2
postfix - addressed in versions 2.6.6-2.17, 3.7.2-4
postfix-doc - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-mysql-debuginfo - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-mysql - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-devel - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-debugsource - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-debuginfo - addressed in versions 3.2.10-3.30.1, 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-lmdb - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-lmdb-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-ldap - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-bdb-debugsource - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-ldap-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-postgresql - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix-postgresql-debuginfo - addressed in versions 3.5.9-150300.5.15.1, 3.7.3-150500.3.11.1
postfix (Red Hat package) - update to 3.5.25-1.el9
postfix - addressed in versions 3.6.13, 3.6.14
postfix-lmdb - update to 3.7.9-1
postfix-mysql - update to 3.7.9-1
postfix-sqlite - update to 3.7.9-1
postfix-pcre - update to 3.7.9-1
postfix-perl-scripts - update to 3.7.9-1
postfix-pgsql - update to 3.7.9-1
postfix-ldap - update to 3.7.9-1
postfix-cdb - update to 3.7.9-1
postfix - update to 3.7.9-1
postfix - addressed in versions 3.7.9-1.fc38, 3.8.4-1.fc39
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- SMTP smuggling attack in Postfix
- Slackware Linux update for postfix
- SUSE update for postfix
- SUSE update for postfix
- Fedora 39 update for postfix
- Fedora 38 update for postfix
- Ubuntu update for postfix
- Slackware Linux update for postfix
- Ubuntu update for postfix
- Amazon Linux AMI update for postfix
- SUSE update for postfix
- Amazon Linux AMI update for postfix
- Red Hat Enterprise Linux 9 update for postfix
- Anolis OS update for postfix