CVE-2024-23185
Fixed in a distro release EPSS 1%CVSS 7.5
Very large headers can cause resource exhaustion when parsing message. The message-parser normally reads reasonably sized chunks of the message. However, when it feeds them to message-header-parser, it starts building up "full_value" buffer out of the smaller chunks. The full_value buffer has no size limit, so large headers can cause large memory usage. It doesn't matter whether it's a single long header line, or a single header split into multiple lines. This bug exists in all Dovecot versions. Incoming mails typically have some size limits set by MTA, so even largest possible header size may still fit into Dovecot's vsz_limit. So attackers probably can't DoS a victim user this way. A user could APPEND larger mails though, allowing them to DoS themselves (although maybe cause some memory issues for the backend in general). One can implement restrictions on headers on MTA component preceding Dovecot. No publicly available exploits are known.
Products: Open-Xchange GmbH OX Dovecot Pro, open-xchange ox_dovecot_pro
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | dovecot | 1:2.3.16-6.el8_10 |
| AlmaLinux 8 | dovecot-devel | 1:2.3.16-6.el8_10 |
| AlmaLinux 8 | dovecot-mysql | 1:2.3.16-6.el8_10 |
| AlmaLinux 8 | dovecot-pgsql | 1:2.3.16-6.el8_10 |
| AlmaLinux 8 | dovecot-pigeonhole | 1:2.3.16-6.el8_10 |
| AlmaLinux 9 | dovecot | 1:2.3.16-11.el9_4.1 |
| AlmaLinux 9 | dovecot-devel | 1:2.3.16-11.el9_4.1 |
| AlmaLinux 9 | dovecot-mysql | 1:2.3.16-11.el9_4.1 |
| AlmaLinux 9 | dovecot-pgsql | 1:2.3.16-11.el9_4.1 |
| AlmaLinux 9 | dovecot-pigeonhole | 1:2.3.16-11.el9_4.1 |
| Alpine 3.21 | dovecot | 2.3.21.1-r0 |
| Alpine 3.22 | dovecot | 2.3.21.1-r0 |
| Alpine 3.23 | dovecot | 2.3.21.1-r0 |
| Alpine 3.24 | dovecot | 2.3.21.1-r0 |
| Amazon Linux 2 | dovecot | 1:2.2.36-6.amzn2.1.2 |
| Amazon Linux 2 | dovecot-devel | 1:2.2.36-6.amzn2.1.2 |
| Amazon Linux 2 | dovecot-mysql | 1:2.2.36-6.amzn2.1.2 |
| Amazon Linux 2 | dovecot-pgsql | 1:2.2.36-6.amzn2.1.2 |
| Amazon Linux 2 | dovecot-pigeonhole | 1:2.2.36-6.amzn2.1.2 |
| Amazon Linux 2023 | dovecot | 1:2.3.20-1.amzn2023.0.2 |
| Amazon Linux 2023 | dovecot-devel | 1:2.3.20-1.amzn2023.0.2 |
| Amazon Linux 2023 | dovecot-mysql | 1:2.3.20-1.amzn2023.0.2 |
| Amazon Linux 2023 | dovecot-pgsql | 1:2.3.20-1.amzn2023.0.2 |
| Amazon Linux 2023 | dovecot-pigeonhole | 1:2.3.20-1.amzn2023.0.2 |
| Debian 11 | dovecot | 1:2.3.13+dfsg1-2+deb11u2 |
| Debian 12 | dovecot | 1:2.3.19.1+dfsg1-2.1+deb12u1 |
| Debian 13 | dovecot | 1:2.3.21.1+dfsg1-1 |
| Debian 14 | dovecot | 1:2.3.21.1+dfsg1-1 |
| Red Hat Enterprise Linux 8 | dovecot | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-debuginfo | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-debugsource | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-devel | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-mysql | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-mysql-debuginfo | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-pgsql | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-pgsql-debuginfo | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-pigeonhole | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 8 | dovecot-pigeonhole-debuginfo | 1:2.3.16-6.el8_10 |
| Red Hat Enterprise Linux 9 | dovecot | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-debuginfo | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-debugsource | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-devel | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-mysql | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-mysql-debuginfo | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-pgsql | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-pgsql-debuginfo | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-pigeonhole | 1:2.3.16-11.el9_4.1 |
| Red Hat Enterprise Linux 9 | dovecot-pigeonhole-debuginfo | 1:2.3.16-11.el9_4.1 |
| Red Hat rhel eus 9.2 | dovecot | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-debuginfo | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-debugsource | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-devel | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-mysql | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-mysql-debuginfo | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-pgsql | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-pgsql-debuginfo | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-pigeonhole | 1:2.3.16-8.el9_2.1 |
| Red Hat rhel eus 9.2 | dovecot-pigeonhole-debuginfo | 1:2.3.16-8.el9_2.1 |
| Rocky Linux 8 | dovecot | 1:2.3.16-6.el8_10 |
| Rocky Linux 9 | dovecot | 1:2.3.16-11.el9_4.1 |
| SUSE Enterprise Storage 7.1 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | dovecot23 | 2.3.21.1-150200.76.1 |
| SUSE Manager Proxy 4.3 | dovecot23 | 2.3.15-150200.65.1 |
| SUSE Manager Server 4.3 | dovecot23 | 2.3.15-150200.65.1 |
| Ubuntu 16.04 LTS | dovecot | no fix |
| Ubuntu 18.04 LTS | dovecot | no fix |
| Ubuntu 20.04 LTS | dovecot | 1:2.3.7.2-1ubuntu3.7 |
| Ubuntu 22.04 LTS | dovecot | 1:2.3.16+dfsg1-3ubuntu2.4 |
| Ubuntu 24.04 LTS | dovecot | 1:2.3.21+dfsg1-2ubuntu6 |
| Ubuntu Pro 14.04 LTS | dovecot | no fix |
| openSUSE Leap 15.5 | dovecot23 | 2.3.15-150200.65.1 |
| openSUSE Leap 15.6 | dovecot23 | 2.3.15-150200.65.1 |
| openSUSE Tumbleweed | dovecot23 | 2.3.21.1-1.1 |
| openSUSE Tumbleweed | dovecot24 | 2.4.0-1.1 |