Katalog CVE

CVE-2024-23185

Wysokie
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Bardzo duże nagłówki mogą powodować wyczerpanie zasobów podczas parsowania wiadomości. Parser wiadomości buduje bufor 'full_value' z mniejszych fragmentów, który nie ma limitu rozmiaru, co może prowadzić do dużego zużycia pamięci.

Ocena ryzyka

Chociaż atakujący prawdopodobnie nie mogą przeprowadzić ataku DoS na użytkownika, mogą spowodować problemy z pamięcią dla backendu, gdy użytkownik spróbuje dodać większe wiadomości.

Rekomendacja

Zaleca się wprowadzenie ograniczeń na nagłówki w komponencie MTA, który preceduje Dovecot, aby zminimalizować ryzyko wyczerpania zasobów.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS