CVE-2024-23185 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, i...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
14 packages: 11 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/dovecot(Ubuntu 16.04) | = 1:2.2.18-2ubuntu2; = 1:2.2.22-1ubuntu1; = 1:2.2.22-1ubuntu2; = 1:2.2.22-1ubuntu2.1 +13 more | No fix listed | No fix yet |
| ubuntu/dovecot(Ubuntu 18.04) | = 1:2.2.27-3ubuntu1; = 1:2.2.33.2-1ubuntu1; = 1:2.2.33.2-1ubuntu2; = 1:2.2.33.2-1ubuntu3 +10 more | No fix listed | No fix yet |
| ubuntu/dovecot(Ubuntu Pro 14.04) | = 1:2.1.7-7ubuntu3; = 1:2.2.9-1ubuntu1; = 1:2.2.9-1ubuntu2; = 1:2.2.9-1ubuntu2.1 +9 more | No fix listed | No fix yet |
| alpine/dovecot(Alpine v3.21) | < 2.3.21.1-r0 | 2.3.21.1-r0 | Fixed |
| alpine/dovecot(Alpine v3.22) | < 2.3.21.1-r0 | 2.3.21.1-r0 | Fixed |
| alpine/dovecot(Alpine v3.23) | < 2.3.21.1-r0 | 2.3.21.1-r0 | Fixed |
| alpine/dovecot(Alpine v3.24) | < 2.3.21.1-r0 | 2.3.21.1-r0 | Fixed |
| debian/dovecot(Debian 12) | < 1:2.3.19.1+dfsg1-2.1+deb12u1; = 1:2.3.19.1+dfsg1-2.1 | 1:2.3.19.1+dfsg1-2.1+deb12u1 | Fixed |
| debian/dovecot(Debian 13) | < 1:2.3.21.1+dfsg1-1 | 1:2.3.21.1+dfsg1-1 | Fixed |
| debian/dovecot(Debian 14) | < 1:2.3.21.1+dfsg1-1 | 1:2.3.21.1+dfsg1-1 | Fixed |
| Open-Xchange GmbH OX Dovecot Pro | <= 2.3.21 | after 2.3.21 | Fixed |
| ubuntu/dovecot(Ubuntu 20.04) | < 1:2.3.7.2-1ubuntu3.7; = 1:2.3.4.1-5ubuntu3; = 1:2.3.7.2-1ubuntu1; = 1:2.3.7.2-1ubuntu2 +7 more | 1:2.3.7.2-1ubuntu3.7 | Fixed |
| ubuntu/dovecot(Ubuntu 22.04) | < 1:2.3.16+dfsg1-3ubuntu2.4; = 1:2.3.13+dfsg1-1ubuntu3; = 1:2.3.16+dfsg1-3ubuntu1; = 1:2.3.16+dfsg1-3ubuntu2 +2 more | 1:2.3.16+dfsg1-3ubuntu2.4 | Fixed |
| ubuntu/dovecot(Ubuntu 24.04) | < 1:2.3.21+dfsg1-2ubuntu6; = 1:2.3.20+dfsg1-1ubuntu3; = 1:2.3.21+dfsg1-2ubuntu1; = 1:2.3.21+dfsg1-2ubuntu2 +2 more | 1:2.3.21+dfsg1-2ubuntu6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/dovecot(Debian:12) | < 1:2.3.19.1+dfsg1-2.1+deb12u1 | 1:2.3.19.1+dfsg1-2.1+deb12u1 |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1 | No fix listed |
| debian/dovecot(Debian:13) | < 1:2.3.21.1+dfsg1-1 | 1:2.3.21.1+dfsg1-1 |
| debian/dovecot(Debian:14) | < 1:2.3.21.1+dfsg1-1 | 1:2.3.21.1+dfsg1-1 |
| ubuntu/dovecot(Ubuntu:22.04) | < 1:2.3.16+dfsg1-3ubuntu2.4 | 1:2.3.16+dfsg1-3ubuntu2.4 |
| Open-Xchange GmbH OX Dovecot Pro | <= 2.3.21 | No fix listed |
| alpine/dovecot(Alpine:v3.21) | < 2.3.21.1-r0 | 2.3.21.1-r0 |
| alpine/dovecot(Alpine:v3.22) | < 2.3.21.1-r0 | 2.3.21.1-r0 |
| alpine/dovecot(Alpine:v3.23) | < 2.3.21.1-r0 | 2.3.21.1-r0 |
| alpine/dovecot(Alpine:v3.24) | < 2.3.21.1-r0 | 2.3.21.1-r0 |
| ubuntu/dovecot(Ubuntu:24.04) | < 1:2.3.21+dfsg1-2ubuntu6 | 1:2.3.21+dfsg1-2ubuntu6 |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | All versions | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.1.7-7ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.1 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.3 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.4 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.5 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.6 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.6+esm1 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.6+esm2 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.6+esm3 | No fix listed |
| ubuntu/dovecot(Ubuntu:Pro:14.04) | = 1:2.2.9-1ubuntu2.6+esm4 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | All versions | No fix listed |
Show 51 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.18-2ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.1 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.2 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.3 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.4 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.6 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.7 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.8 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.9 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.10 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.11 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.12 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.13 | No fix listed |
| ubuntu/dovecot(Ubuntu:16.04) | = 1:2.2.22-1ubuntu2.14 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.27-3ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.1 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.2 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.3 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.4 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.5 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.6 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.7 | No fix listed |
| ubuntu/dovecot(Ubuntu:18.04) | = 1:2.2.33.2-1ubuntu4.8 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | < 1:2.3.7.2-1ubuntu3.7 | 1:2.3.7.2-1ubuntu3.7 |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.4.1-5ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.1 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.2 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.3 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.4 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.5 | No fix listed |
| ubuntu/dovecot(Ubuntu:20.04) | = 1:2.3.7.2-1ubuntu3.6 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | = 1:2.3.13+dfsg1-1ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | = 1:2.3.16+dfsg1-3ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | = 1:2.3.16+dfsg1-3ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | = 1:2.3.16+dfsg1-3ubuntu2.1 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | = 1:2.3.16+dfsg1-3ubuntu2.2 | No fix listed |
| ubuntu/dovecot(Ubuntu:24.04) | = 1:2.3.20+dfsg1-1ubuntu3 | No fix listed |
| ubuntu/dovecot(Ubuntu:24.04) | = 1:2.3.21+dfsg1-2ubuntu1 | No fix listed |
| ubuntu/dovecot(Ubuntu:24.04) | = 1:2.3.21+dfsg1-2ubuntu2 | No fix listed |
| ubuntu/dovecot(Ubuntu:24.04) | = 1:2.3.21+dfsg1-2ubuntu4 | No fix listed |
| ubuntu/dovecot(Ubuntu:24.04) | = 1:2.3.21+dfsg1-2ubuntu5 | No fix listed |
References
- Debian Security Tracker CVE-2024-23185 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6982-1 vendor-advisory
- USN-7013-1 vendor-advisory
- www.cve.org issue-tracking
- documentation.open-xchange.com vendor-advisory
- www.openwall.com
- seclists.org
- lists.debian.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- www.openwall.com issue-tracking