Skip to content
OpenAdvisories
High · 7.5 CVE-2024-23185 EUVD-2024-20704GHSA-g9m4-c8qf-67qw

Very large headers can cause resource exhaustion when parsing message. The message-parser normally reads reasonably sized chunks of the mes…

Published Sep 10, 2024 · Updated Nov 4, 2025 · Assigned by OX

Description

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.

Affected products

VendorProductAffectedFixed
Open-Xchange OX Dovecot Pro ≤ 2.3.21 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dovecot 1:2.3.21.1+dfsg1-1 —
Debian 13 dovecot 1:2.3.21.1+dfsg1-1 —
Debian 12 dovecot 1:2.3.19.1+dfsg1-2.1+deb12u1 DSA-5752-1
Debian 11 dovecot 1:2.3.13+dfsg1-2+deb11u2 DLA-3860-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS dovecot 1:2.3.21+dfsg1-2ubuntu6 USN-6982-1
Ubuntu 22.04 LTS dovecot 1:2.3.16+dfsg1-3ubuntu2.4 USN-7013-1
Ubuntu 20.04 LTS dovecot 1:2.3.7.2-1ubuntu3.7 USN-7013-1
Ubuntu 18.04 LTS dovecot No fix yet —
Ubuntu 16.04 LTS dovecot No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS dovecot No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 dovecot +4 1:2.3.16-11.el9_4.1 RHSA-2024:6529
RHEL 8 dovecot +4 1:2.3.16-6.el8_10 RHSA-2024:6973
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS dovecot +4 1:2.3.16-8.el9_2.1 RHSA-2024:6465

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 dovecot +4 1:2.3.16-11.el9_4.1 ALSA-2024:6529
AlmaLinux 8 dovecot +4 1:2.3.16-6.el8_10 ALSA-2024:6973

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 dovecot 1:2.3.16-11.el9_4.1 RLSA-2024:6529
Rocky Linux 8 dovecot 1:2.3.16-6.el8_10 RLSA-2024:6973
ReleasePackageFixed inAdvisory
SLES 15 SP7 dovecot23 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1
SLES 15 SP6 dovecot23 2.3.15-150200.65.1 SUSE-SU-2026:4139-1, SUSE-SU-2024:3118-1
SLES 15 SP5 dovecot23 2.3.15-150200.65.1 SUSE-SU-2026:4139-1, SUSE-SU-2024:3118-1
SLES 15 SP4 dovecot23 2.3.15-150200.65.1 SUSE-SU-2026:4139-1, SUSE-SU-2024:3118-1
SLES 15 SP3 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 SP2 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SLES for SAP 15 SP6 dovecot23 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1
SLES for SAP 15 SP5 dovecot23 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1
SLES for SAP 15 SP4 dovecot23 2.3.15-150200.65.1 SUSE-SU-2026:4139-1, SUSE-SU-2024:3118-1
SLES for SAP 15 SP3 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SLES for SAP 15 SP2 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SLE HPC 15 SP5 dovecot23 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1
SLE HPC 15 SP4 dovecot23 2.3.15-150200.65.1 SUSE-SU-2026:4139-1, SUSE-SU-2024:3118-1
SLE HPC 15 SP3 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SLE HPC 15 SP2 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SUSE Manager Server 4.3 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SUSE Manager Proxy 4.3 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
SUSE Enterprise Storage 7.1 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed dovecot23 2.3.21.1-1.1 openSUSE-SU-2024:14274-1
openSUSE Tumbleweed dovecot24 2.4.0-1.1 openSUSE-SU-2025:14715-1
openSUSE Leap 15.6 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
openSUSE Leap 15.5 dovecot23 2.3.15-150200.65.1 SUSE-SU-2024:3118-1
ReleasePackageFixed inAdvisory
Alpine v3.24 dovecot 2.3.21.1-r0 —
Alpine v3.23 dovecot 2.3.21.1-r0 —
Alpine v3.22 dovecot 2.3.21.1-r0 —
Alpine v3.21 dovecot 2.3.21.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 dovecot +4 1:2.3.20-1.amzn2023.0.2 ALAS2023-2024-785
Amazon Linux 2 dovecot +4 1:2.2.36-6.amzn2.1.2 ALAS2-2024-2719

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 dovecot No fix yet —
Azure Linux 2 (CBL-Mariner) dovecot No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 dovecot +4 1:2.3.16-11.el9_4.1 ELSA-2024-6529
Oracle Linux 8 dovecot +4 1:2.3.16-6.el8_10 ELSA-2024-6973

Advisories 20

References