{"id":58981,"date":"2024-08-19T19:29:55","date_gmt":"2024-08-19T16:29:55","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180235\/DOV-6601.txt"},"modified":"2024-08-19T19:29:55","modified_gmt":"2024-08-19T16:29:55","slug":"dovecot-imap-server-2-2-2-3-denial-of-service","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/dovecot-imap-server-2-2-2-3-denial-of-service\/","title":{"rendered":"Dovecot IMAP Server 2.2 \/ 2.3 Denial Of Service"},"content":{"rendered":"<p>Affected product: Dovecot IMAP Server<br \/>Internal reference: DOV-6601<br \/>Vulnerability type: CWE-770 (Allocation of Resources Without Limits or Throttling)<br \/>Vulnerable version: 2.2, 2.3<br \/>Vulnerable component: lib-mail<br \/>Report confidence: Confirmed<br \/>Solution status: Fixed in 2.3.21.1<br \/>Researcher credits: Vendor internal discovery<br \/>Vendor notification: 2024-01-31<br \/>CVE reference: CVE-2024-23185<br \/>CVSS: 7.5 (CVSS:3.1\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:H)<\/p>\n<p>Vulnerability Details:<br \/>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 &#8220;full_value&#8221; buffer out of the smaller chunks. The full_value buffer has no size limit, so large headers can cause large memory usage. It doesn&#8217;t matter whether it&#8217;s a single long header line, or a single header split into multiple lines. This bug exists in all Dovecot versions.<\/p>\n<p>Incoming mails typically have some size limits set by MTA, so even largest possible header size may still fit into Dovecot&#8217;s vsz_limit. So attackers probably can&#8217;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).<\/p>\n<p>Workaround:<br \/>One can implement restrictions on headers on MTA component preceding Dovecot.<\/p>\n<p>Fix:<br \/>Install non-vulnerable version of Dovecot. Patch can be found at https:\/\/github.com\/dovecot\/core\/compare\/f020e13%5E&#8230;ce88c33.patch<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Affected product: Dovecot IMAP ServerInternal reference: DOV-6601Vulnerability type: CWE-770 (Allocation of Resources Without Limits or Throttling)Vulnerable version: 2.2, 2.3Vulnerable component: lib-mailReport confidence: ConfirmedSolution status: Fixed in 2.3.21.1Researcher credits: Vendor internal discoveryVendor notification: 2024-01-31CVE reference: CVE-2024-23185CVSS: 7.5 (CVSS:3.1\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:H) Vulnerability Details:Very large headers can cause resource exhaustion when parsing message. The message-parser normally reads reasonably sized chunks &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-58981","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=58981"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58981\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}