{"id":"ALPINE-CVE-2024-23185","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). One can implement restrictions on headers on MTA component preceding Dovecot. No publicly available exploits are known.","modified":"2026-03-09T01:23:43.013653Z","published":"2024-09-10T15:15:14.967Z","upstream":["CVE-2024-23185"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2024-23185"}],"affected":[{"package":{"name":"dovecot","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/dovecot?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.21.1-r0"}]}],"versions":["1.1.11-r0","1.1.11-r1","1.1.13-r0","1.1.14-r0","1.1.14-r1","1.1.15-r0","1.1.16-r0","1.2.1-r0","1.2.10-r0","1.2.11-r0","1.2.11-r1","1.2.11-r2","1.2.11-r3","1.2.11-r4","1.2.11-r5","1.2.12-r0","1.2.12-r1","1.2.12-r2","1.2.12-r3","1.2.13-r0","1.2.13-r1","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.2.5-r0","1.2.6-r0","1.2.6-r1","1.2.7-r0","1.2.8-r0","1.2.9-r0","2.0.1-r0","2.0.10-r0","2.0.11-r0","2.0.11-r1","2.0.12-r0","2.0.12-r1","2.0.12-r2","2.0.13-r0","2.0.13-r1","2.0.14-r0","2.0.14-r1","2.0.15-r0","2.0.16-r0","2.0.17-r0","2.0.17-r1","2.0.17-r2","2.0.18-r0","2.0.2-r0","2.0.2-r1","2.0.4-r0","2.0.5-r0","2.0.6-r0","2.0.7-r0","2.0.8-r0","2.0.9-r0","2.0.9-r1","2.1.0-r0","2.1.1-r0","2.1.10-r0","2.1.10-r1","2.1.12-r0","2.1.13-r0","2.1.14-r0","2.1.15-r0","2.1.16-r0","2.1.2-r0","2.1.3-r0","2.1.4-r0","2.1.5-r0","2.1.6-r0","2.1.6-r1","2.1.7-r0","2.1.8-r0","2.1.9-r0","2.1.9-r1","2.2.1-r0","2.2.10-r0","2.2.11-r0","2.2.12-r0","2.2.13-r0","2.2.14-r0","2.2.15-r0","2.2.15-r1","2.2.15-r2","2.2.16-r0","2.2.16-r1","2.2.18-r0","2.2.18-r1","2.2.19-r0","2.2.19-r1","2.2.19-r2","2.2.2-r0","2.2.2-r1","2.2.20-r0","2.2.20-r1","2.2.21-r0","2.2.22-r0","2.2.22-r1","2.2.23-r0","2.2.23-r1","2.2.24-r0","2.2.24-r1","2.2.25-r0","2.2.25-r1","2.2.25-r2","2.2.26.0-r0","2.2.27-r0","2.2.27-r1","2.2.27-r2","2.2.29.1-r0","2.2.3-r0","2.2.32-r0","2.2.33.2-r0","2.2.33.2-r1","2.2.33.2-r2","2.2.33.2-r3","2.2.33.2-r4","2.2.34-r0","2.2.34-r1","2.2.34-r2","2.2.34-r3","2.2.4-r0","2.2.5-r0","2.2.5-r1","2.2.5-r2","2.2.6-r0","2.2.7-r0","2.2.8-r0","2.2.9-r0","2.3.1-r0","2.3.1-r1","2.3.10-r0","2.3.10.1-r0","2.3.11.3-r0","2.3.11.3-r1","2.3.13-r0","2.3.14-r0","2.3.15-r0","2.3.16-r0","2.3.16-r1","2.3.16-r2","2.3.17-r0","2.3.17-r1","2.3.17-r2","2.3.17.1-r2","2.3.18-r1","2.3.18-r2","2.3.19-r2","2.3.19.1-r0","2.3.19.1-r1","2.3.19.1-r2","2.3.19.1-r3","2.3.19.1-r4","2.3.19.1-r5","2.3.19.1-r6","2.3.2.1-r0","2.3.2.1-r1","2.3.2.1-r2","2.3.2.1-r3","2.3.2.1-r4","2.3.20-r10","2.3.20-r11","2.3.20-r12","2.3.20-r6","2.3.20-r7","2.3.20-r8","2.3.20-r9","2.3.21-r12","2.3.21-r13","2.3.21-r14","2.3.21-r15","2.3.21-r16","2.3.21-r17","2.3.21-r18","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.4.1-r0","2.3.4.1-r1","2.3.5.1-r0","2.3.5.1-r1","2.3.6-r0","2.3.6-r1","2.3.7-r0","2.3.7.1-r0","2.3.7.2-r0","2.3.8-r0","2.3.9-r0","2.3.9.2-r0","2.3.9.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-23185.json"}},{"package":{"name":"dovecot","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/dovecot?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.21.1-r0"}]}],"versions":["1.1.11-r0","1.1.11-r1","1.1.13-r0","1.1.14-r0","1.1.14-r1","1.1.15-r0","1.1.16-r0","1.2.1-r0","1.2.10-r0","1.2.11-r0","1.2.11-r1","1.2.11-r2","1.2.11-r3","1.2.11-r4","1.2.11-r5","1.2.12-r0","1.2.12-r1","1.2.12-r2","1.2.12-r3","1.2.13-r0","1.2.13-r1","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.2.5-r0","1.2.6-r0","1.2.6-r1","1.2.7-r0","1.2.8-r0","1.2.9-r0","2.0.1-r0","2.0.10-r0","2.0.11-r0","2.0.11-r1","2.0.12-r0","2.0.12-r1","2.0.12-r2","2.0.13-r0","2.0.13-r1","2.0.14-r0","2.0.14-r1","2.0.15-r0","2.0.16-r0","2.0.17-r0","2.0.17-r1","2.0.17-r2","2.0.18-r0","2.0.2-r0","2.0.2-r1","2.0.4-r0","2.0.5-r0","2.0.6-r0","2.0.7-r0","2.0.8-r0","2.0.9-r0","2.0.9-r1","2.1.0-r0","2.1.1-r0","2.1.10-r0","2.1.10-r1","2.1.12-r0","2.1.13-r0","2.1.14-r0","2.1.15-r0","2.1.16-r0","2.1.2-r0","2.1.3-r0","2.1.4-r0","2.1.5-r0","2.1.6-r0","2.1.6-r1","2.1.7-r0","2.1.8-r0","2.1.9-r0","2.1.9-r1","2.2.1-r0","2.2.10-r0","2.2.11-r0","2.2.12-r0","2.2.13-r0","2.2.14-r0","2.2.15-r0","2.2.15-r1","2.2.15-r2","2.2.16-r0","2.2.16-r1","2.2.18-r0","2.2.18-r1","2.2.19-r0","2.2.19-r1","2.2.19-r2","2.2.2-r0","2.2.2-r1","2.2.20-r0","2.2.20-r1","2.2.21-r0","2.2.22-r0","2.2.22-r1","2.2.23-r0","2.2.23-r1","2.2.24-r0","2.2.24-r1","2.2.25-r0","2.2.25-r1","2.2.25-r2","2.2.26.0-r0","2.2.27-r0","2.2.27-r1","2.2.27-r2","2.2.29.1-r0","2.2.3-r0","2.2.32-r0","2.2.33.2-r0","2.2.33.2-r1","2.2.33.2-r2","2.2.33.2-r3","2.2.33.2-r4","2.2.34-r0","2.2.34-r1","2.2.34-r2","2.2.34-r3","2.2.4-r0","2.2.5-r0","2.2.5-r1","2.2.5-r2","2.2.6-r0","2.2.7-r0","2.2.8-r0","2.2.9-r0","2.3.1-r0","2.3.1-r1","2.3.10-r0","2.3.10.1-r0","2.3.11.3-r0","2.3.11.3-r1","2.3.13-r0","2.3.14-r0","2.3.15-r0","2.3.16-r0","2.3.16-r1","2.3.16-r2","2.3.17-r0","2.3.17-r1","2.3.17-r2","2.3.17.1-r2","2.3.18-r1","2.3.18-r2","2.3.19-r2","2.3.19.1-r0","2.3.19.1-r1","2.3.19.1-r2","2.3.19.1-r3","2.3.19.1-r4","2.3.19.1-r5","2.3.19.1-r6","2.3.2.1-r0","2.3.2.1-r1","2.3.2.1-r2","2.3.2.1-r3","2.3.2.1-r4","2.3.20-r10","2.3.20-r11","2.3.20-r12","2.3.20-r6","2.3.20-r7","2.3.20-r8","2.3.20-r9","2.3.21-r12","2.3.21-r13","2.3.21-r14","2.3.21-r15","2.3.21-r16","2.3.21-r17","2.3.21-r18","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.4.1-r0","2.3.4.1-r1","2.3.5.1-r0","2.3.5.1-r1","2.3.6-r0","2.3.6-r1","2.3.7-r0","2.3.7.1-r0","2.3.7.2-r0","2.3.8-r0","2.3.9-r0","2.3.9.2-r0","2.3.9.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-23185.json"}},{"package":{"name":"dovecot","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/dovecot?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.21.1-r0"}]}],"versions":["1.1.11-r0","1.1.11-r1","1.1.13-r0","1.1.14-r0","1.1.14-r1","1.1.15-r0","1.1.16-r0","1.2.1-r0","1.2.10-r0","1.2.11-r0","1.2.11-r1","1.2.11-r2","1.2.11-r3","1.2.11-r4","1.2.11-r5","1.2.12-r0","1.2.12-r1","1.2.12-r2","1.2.12-r3","1.2.13-r0","1.2.13-r1","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.2.5-r0","1.2.6-r0","1.2.6-r1","1.2.7-r0","1.2.8-r0","1.2.9-r0","2.0.1-r0","2.0.10-r0","2.0.11-r0","2.0.11-r1","2.0.12-r0","2.0.12-r1","2.0.12-r2","2.0.13-r0","2.0.13-r1","2.0.14-r0","2.0.14-r1","2.0.15-r0","2.0.16-r0","2.0.17-r0","2.0.17-r1","2.0.17-r2","2.0.18-r0","2.0.2-r0","2.0.2-r1","2.0.4-r0","2.0.5-r0","2.0.6-r0","2.0.7-r0","2.0.8-r0","2.0.9-r0","2.0.9-r1","2.1.0-r0","2.1.1-r0","2.1.10-r0","2.1.10-r1","2.1.12-r0","2.1.13-r0","2.1.14-r0","2.1.15-r0","2.1.16-r0","2.1.2-r0","2.1.3-r0","2.1.4-r0","2.1.5-r0","2.1.6-r0","2.1.6-r1","2.1.7-r0","2.1.8-r0","2.1.9-r0","2.1.9-r1","2.2.1-r0","2.2.10-r0","2.2.11-r0","2.2.12-r0","2.2.13-r0","2.2.14-r0","2.2.15-r0","2.2.15-r1","2.2.15-r2","2.2.16-r0","2.2.16-r1","2.2.18-r0","2.2.18-r1","2.2.19-r0","2.2.19-r1","2.2.19-r2","2.2.2-r0","2.2.2-r1","2.2.20-r0","2.2.20-r1","2.2.21-r0","2.2.22-r0","2.2.22-r1","2.2.23-r0","2.2.23-r1","2.2.24-r0","2.2.24-r1","2.2.25-r0","2.2.25-r1","2.2.25-r2","2.2.26.0-r0","2.2.27-r0","2.2.27-r1","2.2.27-r2","2.2.29.1-r0","2.2.3-r0","2.2.32-r0","2.2.33.2-r0","2.2.33.2-r1","2.2.33.2-r2","2.2.33.2-r3","2.2.33.2-r4","2.2.34-r0","2.2.34-r1","2.2.34-r2","2.2.34-r3","2.2.4-r0","2.2.5-r0","2.2.5-r1","2.2.5-r2","2.2.6-r0","2.2.7-r0","2.2.8-r0","2.2.9-r0","2.3.1-r0","2.3.1-r1","2.3.10-r0","2.3.10.1-r0","2.3.11.3-r0","2.3.11.3-r1","2.3.13-r0","2.3.14-r0","2.3.15-r0","2.3.16-r0","2.3.16-r1","2.3.16-r2","2.3.17-r0","2.3.17-r1","2.3.17-r2","2.3.17.1-r2","2.3.18-r1","2.3.18-r2","2.3.19-r2","2.3.19.1-r0","2.3.19.1-r1","2.3.19.1-r2","2.3.19.1-r3","2.3.19.1-r4","2.3.19.1-r5","2.3.19.1-r6","2.3.2.1-r0","2.3.2.1-r1","2.3.2.1-r2","2.3.2.1-r3","2.3.2.1-r4","2.3.20-r10","2.3.20-r11","2.3.20-r12","2.3.20-r6","2.3.20-r7","2.3.20-r8","2.3.20-r9","2.3.21-r12","2.3.21-r13","2.3.21-r14","2.3.21-r15","2.3.21-r16","2.3.21-r17","2.3.21-r18","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.4.1-r0","2.3.4.1-r1","2.3.5.1-r0","2.3.5.1-r1","2.3.6-r0","2.3.6-r1","2.3.7-r0","2.3.7.1-r0","2.3.7.2-r0","2.3.8-r0","2.3.9-r0","2.3.9.2-r0","2.3.9.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-23185.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}