Code injection in Dovecot - CVE-2021-33515

 

Code injection in Dovecot - CVE-2021-33515

Published: June 21, 2021


Vulnerability identifier: #VU54286
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-33515
CWE-ID: CWE-74
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists in the way STARTTLS command in processed by the SMTP server. the commands sent during the session before the STARTTLS command are queued and executed later, after the STARTTLS finished with the client. As a result, a remote attacker can perform a MitM attack and gain access to victim's emails.


Affected software

Dovecot
Gentoo Linux
Arch Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat CodeReady Linux Builder for x86_64
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
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Server Applications
openEuler
Ubuntu
Fedora
dovecot (Red Hat package)
dovecot-core (Ubuntu package)
dovecot23
dovecot23-fts-squat-debuginfo
dovecot23-fts-squat
dovecot23-fts-solr-debuginfo
dovecot23-fts-solr
dovecot23-fts-lucene-debuginfo
dovecot23-fts-lucene
dovecot23-fts-debuginfo
dovecot23-fts
dovecot23-debugsource
dovecot23-devel
dovecot23-backend-mysql
dovecot23-backend-mysql-debuginfo
dovecot23-backend-pgsql
dovecot23-backend-pgsql-debuginfo
dovecot23-backend-sqlite
dovecot23-backend-sqlite-debuginfo
dovecot23-debuginfo
dovecot-help
dovecot
dovecot-debuginfo
dovecot-devel
dovecot-debugsource
dovecot-mysql
dovecot-pgsql
dovecot-pigeonhole

How to mitigate CVE-2021-33515

Install updates from vendor's website.

Dovecot - update to 2.3.15
dovecot (Red Hat package) - update to 2.3.16-2.el8
dovecot-core (Ubuntu package) - addressed in versions 1:2.3.7.2-1ubuntu3.4, 1:2.3.11.3+dfsg1-2ubuntu0.2, 1:2.3.13+dfsg1-1ubuntu1.1
dovecot23 - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-squat-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-squat - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-solr-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-solr - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-lucene-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-lucene - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-fts - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-debugsource - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-devel - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-mysql - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-mysql-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-pgsql - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-pgsql-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-sqlite - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-backend-sqlite-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot23-debuginfo - addressed in versions 2.3.11.3-4.35.1, 2.3.11.3-24.1, 2.3.11.3-55.1, 2.3.15-4.38.3, 2.3.15-27.3, 2.3.15-58.3
dovecot-help - update to 2.3.15-1
dovecot - update to 2.3.15-1
dovecot-debuginfo - update to 2.3.15-1
dovecot-devel - update to 2.3.15-1
dovecot-debugsource - update to 2.3.15-1
dovecot - addressed in versions 2.3.15-1.fc33, 2.3.15-1.fc34
dovecot - update to 2.3.16-2
dovecot-mysql - update to 2.3.16-2
dovecot-pgsql - update to 2.3.16-2
dovecot-pigeonhole - update to 2.3.16-2

External References

Related Security Bulletins