Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://documentation.open-xchange.com/dovecot/security/advisories/csaf/2024/oxd
- http://seclists.org/fulldisclosure/2024/Aug/18
- http://www.openwall.com/lists/oss-security/2024/08/15/4
- https://lists.debian.org/debian-lts-announce/2024/09/msg00002.html
FAQ
What is CVE-2024-23185?
CVE-2024-23185 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2024-23185?
CVE-2024-23185 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-23185?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.