Vulnerability · Published Sep 10, 2024 · Assigned by OX

CVE-2024-23185

High 7.5

In plain English

A high-severity resource allocation without limits in OX Dovecot Pro from Open-Xchange GmbH. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.3%top 29.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8dovecot1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux:9dovecot1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux:8dovecot-devel1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux:9dovecot-devel1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux:8dovecot-mysql1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux:9dovecot-mysql1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux:8dovecot-pgsql1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux:9dovecot-pgsql1:2.3.16-11.el9_4.1ALSA-2024:6529
AlmaLinux:8dovecot-pigeonhole1:2.3.16-6.el8_10ALSA-2024:6973
AlmaLinux:9dovecot-pigeonhole1:2.3.16-11.el9_4.1ALSA-2024:6529
Alpine:v3.21dovecot2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine:v3.22dovecot2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine:v3.23dovecot2.3.21.1-r0ALPINE-CVE-2024-23185
Alpine:v3.24dovecot2.3.21.1-r0ALPINE-CVE-2024-23185
Debian:12dovecot1:2.3.19.1+dfsg1-2.1+deb12u1DSA-5752-1
Debian:12dovecot1:2.3.19.1+dfsg1-2.1+deb12u1DEBIAN-CVE-2024-23185
Debian:13dovecot1:2.3.21.1+dfsg1-1DEBIAN-CVE-2024-23185
Debian:14dovecot1:2.3.21.1+dfsg1-1DEBIAN-CVE-2024-23185
Rocky Linux:8dovecot1:2.3.16-6.el8_10RLSA-2024:6973
Rocky Linux:9dovecot1:2.3.16-11.el9_4.1RLSA-2024:6529
Ubuntu:22.04:LTSdovecot1:2.3.16+dfsg1-3ubuntu2.4USN-7013-1
Ubuntu:22.04:LTSdovecot1:2.3.16+dfsg1-3ubuntu2.4UBUNTU-CVE-2024-23185
Ubuntu:24.04:LTSdovecot1:2.3.21+dfsg1-2ubuntu6UBUNTU-CVE-2024-23185
Ubuntu:24.04:LTSdovecot1:2.3.21+dfsg1-2ubuntu6USN-6982-1

Affected products (as reported)

VendorProductVersions
Open-Xchange GmbH OX Dovecot Pro 0 – through 2.3.21

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References