Resource Exhaustion Vulnerability in Dovecot: CVE-2024-23185

dovecot Updated 02 Oct 2025

Summary

10/09/2024
N/A
Yes i
Unrated
Not published

ALPINE-CVE-2024-23185: Very large headers can cause resource exhaustion when parsing message. Affects dovecot versions < 2.3.21.1-r0. Fixed in 2.3.21.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Dovecot is an open-source IMAP and POP3 email server for Unix-like operating systems. It is designed to provide secure and efficient email retrieval and storage. Dovecot is known for its high performance, extensibility, and support for various authentication mechanisms. However, it is susceptible to a vulnerability that allows for resource exhaustion due to the handling of very large headers in email messages.

Vulnerability Detail

The vulnerability identified as CVE-2024-23185 arises from the message-parser's handling of large headers. When parsing messages, the message-header-parser builds a 'full_value' buffer from smaller chunks of the message. This buffer has no size limit, leading to potential excessive memory usage when processing large headers. Although incoming emails typically have size limits set by the Mail Transfer Agent (MTA), users can still append larger emails, which may lead to denial of service (DoS) for themselves and could cause memory issues for the backend. No known public exploits are available for this vulnerability.

How To Fix

Minimum fixed version

2.3.21.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade dovecot

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, implement restrictions on header sizes at the MTA component preceding Dovecot. This can help mitigate the risk of resource exhaustion by limiting the size of headers that Dovecot has to process.

Conclusion

CVE-2024-23185 presents a significant resource exhaustion risk for Dovecot users, particularly when handling large email headers. It is crucial to update to the patched version to mitigate this vulnerability and consider implementing header size restrictions at the MTA level. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for dovecot →

Share this vulnerability

FAQ

CVE-2024-23185 is a vulnerability in Dovecot that allows for resource exhaustion due to the handling of very large email headers.

Users can experience denial of service (DoS) if they append large emails, leading to excessive memory usage and potential service disruption.

Yes, a patch is available in version 2.3.21.1-r0 of Dovecot. Users should update to this version or later.

Run the command 'apk add dovecot=2.3.21.1-r0' in your terminal to update to the patched version.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file. Check your application for vulnerabilities at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for dovecot.

How To Fix

Minimum fixed version

2.3.21.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade dovecot

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback