Advisory

DEBIAN-CVE-2024-23185

Also known as: CVE-2024-23185

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2024-09-10 15:15 UTC
Modified
2026-11-02 12:00 UTC

Affected packages and fixes

dovecot

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1:2.3.19.1+dfsg1-2.1+deb12u1 (ecosystem)

Fixed versions

1:2.3.19.1+dfsg1-2.1+deb12u1

Fix

  • Fixed version 1:2.3.19.1+dfsg1-2.1+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

dovecot

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1:2.3.21.1+dfsg1-1 (ecosystem)

Fixed versions

1:2.3.21.1+dfsg1-1

Fix

  • Fixed version 1:2.3.21.1+dfsg1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

dovecot

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1:2.3.21.1+dfsg1-1 (ecosystem)

Fixed versions

1:2.3.21.1+dfsg1-1

Fix

  • Fixed version 1:2.3.21.1+dfsg1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences