VDB

CVE-2024-23185

CVE-2024-23185 PUBLISHED CVSS 7.5 HIGH

Reported by ox · Published September 10, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
dovecot-develAmazon Linux1:2.3.20-1.amzn2023.0.2, 1:2.2.36-6.amzn2.1.2
dovecot-pgsqlAmazon Linux1:2.3.20-1.amzn2023.0.2, 1:2.2.36-6.amzn2.1.2
dovecot-mysqlAmazon Linux1:2.3.20-1.amzn2023.0.2, 1:2.2.36-6.amzn2.1.2
dovecotAlpine2.3.21.1-r0
dovecot-pigeonholeAmazon Linux1:2.3.20-1.amzn2023.0.2, 1:2.2.36-6.amzn2.1.2
dovecotAmazon Linux1:2.3.20-1.amzn2023.0.2, 1:2.2.36-6.amzn2.1.2
ox_dovecot_proopen-xchange2.3.21
OX Dovecot ProOpen-Xchange GmbH2.3.21

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
Open-Xchange GmbHOX Dovecot Pro0
amazon:2023dovecot-devel0
amazon:2dovecot-pgsql0
amazon:2023dovecot-mysql0
alpinedovecot0
amazon:2023dovecot-pgsql0
amazon:2dovecot-pigeonhole0
amazon:2023dovecot-pigeonhole0
Open-Xchange GmbHOX Dovecot Pro0
amazon:2dovecot0
amazon:2023dovecot0
amazon:2dovecot-mysql0
open-xchangeox_dovecot_pro0
amazon:2dovecot-devel0

Timeline

  • Aug 15, 2024 CVE Published
  • Sep 10, 2024 PoC Published
  • Sep 11, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (8 in total, the first dated here)
  • Sep 17, 2026 Distribution Patch (5 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-23185
vulnetix vdb fixes CVE-2024-23185

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-23185/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›