First published: Mon Aug 19 2024(Updated: )
Vulnerability Details: 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). Workaround: One can implement restrictions on headers on MTA component preceding Dovecot. Fix: Install non-vulnerable version of Dovecot. Patch can be found at <a href="https://github.com/dovecot/core/compare/f020e13%5E...ce88c33.patch">https://github.com/dovecot/core/compare/f020e13%5E...ce88c33.patch</a>
Affected Software | Affected Version | How to fix |
---|---|---|
Dovecot | <= |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2305910 is classified as high due to potential resource exhaustion.
To fix REDHAT-BUG-2305910, you should apply the latest patches provided by Dovecot for affected versions.
Dovecot Dovecot is the software affected by REDHAT-BUG-2305910.
The possible impacts of REDHAT-BUG-2305910 include denial of service due to resource exhaustion.
Currently, there are no known specific workarounds for REDHAT-BUG-2305910 other than applying the patch.