CVEfocus › CVE database › CVE-2024-23185

CVE-2024-23185

CVSS 7.5 HighEPSS 1.3% (higher than 71% of CVEs)Published 2024-09-10Updated 2025-11-04Assigner: OX

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.

CWE-770

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

32Fixed
3Fix pending
10Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04dovecotFixed1:2.3.21+dfsg1-2ubuntu6UBUNTU-CVE-2024-23185
Ubuntu 22.04dovecotFixed1:2.3.16+dfsg1-3ubuntu2.4UBUNTU-CVE-2024-23185
Ubuntu 20.04dovecotFixed1:2.3.7.2-1ubuntu3.7UBUNTU-CVE-2024-23185
Ubuntu 18.04dovecotFix pendingUBUNTU-CVE-2024-23185
Ubuntu 16.04dovecotFix pendingUBUNTU-CVE-2024-23185
Ubuntu 14.04dovecotFix pendingUBUNTU-CVE-2024-23185
Debian 14dovecotFixed1:2.3.21.1+dfsg1-1DEBIAN-CVE-2024-23185
Debian 13dovecotFixed1:2.3.21.1+dfsg1-1DEBIAN-CVE-2024-23185
Debian 12dovecotFixed1:2.3.19.1+dfsg1-2.1+deb12u1DEBIAN-CVE-2024-23185
Red Hat Enterprise Linux 10dovecotNot affected
Red Hat Enterprise Linux 10dovecot-develNot affected
Red Hat Enterprise Linux 10dovecot-mysqlNot affected
Red Hat Enterprise Linux 10dovecot-pgsqlNot affected
Red Hat Enterprise Linux 10dovecot-pigeonholeNot affected
Red Hat Enterprise Linux 9dovecotFixed1:2.3.16-11.el9_4.1RHSA-2024:6529
Red Hat Enterprise Linux 9dovecot-develFixed1:2.3.16-11.el9_4.1RHSA-2024:6529
Red Hat Enterprise Linux 9dovecot-mysqlFixed1:2.3.16-11.el9_4.1RHSA-2024:6529
Red Hat Enterprise Linux 9dovecot-pgsqlFixed1:2.3.16-11.el9_4.1RHSA-2024:6529
Red Hat Enterprise Linux 9dovecot-pigeonholeFixed1:2.3.16-11.el9_4.1RHSA-2024:6529
Red Hat Enterprise Linux 8dovecotFixed1:2.3.16-6.el8_10RHSA-2024:6973
Red Hat Enterprise Linux 8dovecot-develFixed1:2.3.16-6.el8_10RHSA-2024:6973
Red Hat Enterprise Linux 8dovecot-mysqlFixed1:2.3.16-6.el8_10RHSA-2024:6973
Red Hat Enterprise Linux 8dovecot-pgsqlFixed1:2.3.16-6.el8_10RHSA-2024:6973
Red Hat Enterprise Linux 8dovecot-pigeonholeFixed1:2.3.16-6.el8_10RHSA-2024:6973
Red Hat Enterprise Linux 7dovecotWill not fix
Out of support scope
Red Hat Enterprise Linux 7dovecot-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7dovecot-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7dovecot-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7dovecot-pigeonholeWill not fix
Out of support scope
Red Hat Enterprise Linux 6dovecotWill not fix
Out of support scope
Red Hat Enterprise Linux 6dovecot-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6dovecot-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6dovecot-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6dovecot-pigeonholeWill not fix
Out of support scope
AlmaLinux 9dovecotFixed1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux 9dovecot-develFixed1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux 9dovecot-mysqlFixed1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux 9dovecot-pgsqlFixed1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux 9dovecot-pigeonholeFixed1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux 8dovecotFixed1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux 8dovecot-develFixed1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux 8dovecot-mysqlFixed1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux 8dovecot-pgsqlFixed1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux 8dovecot-pigeonholeFixed1:2.3.16-6.el8_10ALSA-2024:6973
Rocky Linux 9dovecotFixed1:2.3.16-11.el9_4.1RLSA-2024:6529
Rocky Linux 8dovecotFixed1:2.3.16-6.el8_10RLSA-2024:6973
Alpine Linux 3.24dovecotFixed2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine Linux 3.23dovecotFixed2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine Linux 3.22dovecotFixed2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine Linux 3.21dovecotFixed2.3.21.1-r0ALPINE-CVE-2024-23185

What the vendor says

As published in the CVE record by OX, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.