Dovecot: Privilege Escalation — GLSA 202310-19

A vulnerability has been discovered in Dovecot that can lead to a privilege escalation when master and non-master passdbs are used.

Affected packages

net-mail/dovecot on all architectures
Affected versions < 2.3.19.1-r1
Unaffected versions >= 2.3.19.1-r1

Background

Dovecot is an open source IMAP and POP3 email server.

Description

A vulnerability has been discovered in Dovecot. Please review the CVE identifier referenced below for details.

Impact

When two passdb configuration entries exist in Dovecot configuration, which have the same driver and args settings, the incorrect username_filter and mechanism settings can be applied to passdb definitions. These incorrectly applied settings can lead to an unintended security configuration and can permit privilege escalation with certain configurations involving master user authentication. Dovecot documentation does not advise against the use of passdb definitions which have the same driver and args settings. One such configuration would be where an administrator wishes to use the same pam configuration or passwd file for both normal and master users but use the username_filter setting to restrict which of the users is able to be a master user.

Workaround

There is no known workaround at this time.

Resolution

All Dovecot users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=net-mail/dovecot-2.3.19.1-r1"
 

References

Release date
October 30, 2023

Latest revision
October 30, 2023: 1

Severity
normal

Exploitable
local and remote

Bugzilla entries