CVE-2024-23184: Dovecot CVE-2024-23184: Having a large number of addss headers (From, To, Cc, Bcc, etc.) becomes excessively CPU intensive

Published Aug 15, 2024
·
Updated

Having a large number of address headers (From, To, Cc, Bcc, etc.) becomes excessively CPU intensive. With 100k header lines CPU usage is already 12 seconds, and in a production environment we observed 500k header lines taking 18 minutes to parse. Since this can be triggered by external actors sending emails to a victim, this is a security issue. An external attacker can send specially crafted messages that consume target system resources and cause outage. One can implement restrictions on address headers on MTA component preceding Dovecot. No publicly available exploits are known.

Other sources

Vulnerability Details: Having a large number of address headers (From, To, Cc, Bcc, etc.) becomes excessively CPU intensive. With 100k header lines CPU usage is already 12 seconds, and in a production environment we observed 500k header lines taking 18 minutes to parse. Since this can be triggered by external actors sending emails to a victim, this is a security issue.

The main problem is that each header line's address is added to the end of a linked list. This is done by walking the whole linked list, which becomes more inefficient the more addresses there are.

Workaround: One can implement restrictions on address headers on MTA component preceding Dovecot.

Fix: Install non-vulnerable version of Dovecot. Patch can be found at https://github.com/dovecot/core/compare/8e4c42d%5E...1481c04.patch

Red Hat

Affected Software

1 affected componentFixes available
debian/dovecot<=1:2.3.13+dfsg1-2+deb11u1
1:2.3.13+dfsg1-2+deb11u21:2.3.19.1+dfsg1-2.1+deb12u11:2.3.21.1+dfsg1-1

Event History

Aug 19, 2024
Data Sourced
via Red Hat·08:45 PM
DescriptionSeverityAffected Software
Sep 10, 2024
CVE Published
via MITRE·02:33 PM
Data Sourced
via MITRE·02:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Sep 18, 2024
Data Sourced
via Ubuntu·05:46 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-23184?

CVE-2024-23184 is considered to have a high severity due to excessive CPU usage when processing a high number of email header lines.

2

How do I fix CVE-2024-23184?

To fix CVE-2024-23184, update the Dovecot package to one of the patched versions: 1:2.3.13+dfsg1-2+deb11u2, 1:2.3.19.1+dfsg1-2.1+deb12u1, or 1:2.3.21.1+dfsg1-1.

3

What systems are affected by CVE-2024-23184?

CVE-2024-23184 affects specific versions of the Dovecot email server software running on Debian.

4

What mitigation steps can be taken for CVE-2024-23184?

Mitigation can include limiting the number of headers in emails processed by Dovecot to reduce CPU load.

5

Is CVE-2024-23184 exploitable remotely?

Yes, CVE-2024-23184 can be triggered by external sources through crafted emails with excessive header lines.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203