CVE-2022-30550
An issue was discovered in the auth component in Dovecot 2.2 and 2.3 before 2.3.20. When two passdb configuration entries exist with the same driver and args settings, 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 in certain configurations. The documentation does not advise against the use of passdb definitions that 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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | dovecot | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | dovecot | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | dovecot | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | dovecot | Fixed | 1:2.3.16+dfsg1-3ubuntu2.1 | UBUNTU-CVE-2022-30550 |
| Ubuntu 20.04 | dovecot | Fixed | 1:2.3.7.2-1ubuntu3.6 | UBUNTU-CVE-2022-30550 |
| Ubuntu 18.04 | dovecot | Fixed | 1:2.2.33.2-1ubuntu4.8 | UBUNTU-CVE-2022-30550 |
| Ubuntu 16.04 | dovecot | Fix pending | UBUNTU-CVE-2022-30550 | |
| Ubuntu 14.04 | dovecot | Fix pending | UBUNTU-CVE-2022-30550 | |
| Debian 14 | dovecot | Fixed | 1:2.3.19.1+dfsg1-2 | DEBIAN-CVE-2022-30550 |
| Debian 13 | dovecot | Fixed | 1:2.3.19.1+dfsg1-2 | DEBIAN-CVE-2022-30550 |
| Debian 12 | dovecot | Fixed | 1:2.3.19.1+dfsg1-2 | DEBIAN-CVE-2022-30550 |
| Red Hat Enterprise Linux 9 | dovecot | Fixed | 1:2.3.16-7.el9 | RHSA-2022:8208 |
| Red Hat Enterprise Linux 9 | dovecot-devel | Fixed | 1:2.3.16-7.el9 | RHSA-2022:8208 |
| Red Hat Enterprise Linux 9 | dovecot-mysql | Fixed | 1:2.3.16-7.el9 | RHSA-2022:8208 |
| Red Hat Enterprise Linux 9 | dovecot-pgsql | Fixed | 1:2.3.16-7.el9 | RHSA-2022:8208 |
| Red Hat Enterprise Linux 9 | dovecot-pigeonhole | Fixed | 1:2.3.16-7.el9 | RHSA-2022:8208 |
| Red Hat Enterprise Linux 8 | dovecot | Fixed | 1:2.3.16-3.el8 | RHSA-2022:7623 |
| Red Hat Enterprise Linux 8 | dovecot-devel | Fixed | 1:2.3.16-3.el8 | RHSA-2022:7623 |
| Red Hat Enterprise Linux 8 | dovecot-mysql | Fixed | 1:2.3.16-3.el8 | RHSA-2022:7623 |
| Red Hat Enterprise Linux 8 | dovecot-pgsql | Fixed | 1:2.3.16-3.el8 | RHSA-2022:7623 |
| Red Hat Enterprise Linux 8 | dovecot-pigeonhole | Fixed | 1:2.3.16-3.el8 | RHSA-2022:7623 |
| Red Hat Enterprise Linux 7 | dovecot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | dovecot-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | dovecot-mysql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | dovecot-pgsql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | dovecot-pigeonhole | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | dovecot | Not affected | ||
| Red Hat Enterprise Linux 6 | dovecot-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | dovecot-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | dovecot-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | dovecot-pigeonhole | Not affected | ||
| AlmaLinux 9 | dovecot | Fixed | 1:2.3.16-7.el9 | ALSA-2022:8208 |
| AlmaLinux 9 | dovecot-devel | Fixed | 1:2.3.16-7.el9 | ALSA-2022:8208 |
| AlmaLinux 9 | dovecot-mysql | Fixed | 1:2.3.16-7.el9 | ALSA-2022:8208 |
| AlmaLinux 9 | dovecot-pgsql | Fixed | 1:2.3.16-7.el9 | ALSA-2022:8208 |
| AlmaLinux 9 | dovecot-pigeonhole | Fixed | 1:2.3.16-7.el9 | ALSA-2022:8208 |
| AlmaLinux 8 | dovecot | Fixed | 1:2.3.16-3.el8 | ALSA-2022:7623 |
| AlmaLinux 8 | dovecot-devel | Fixed | 1:2.3.16-3.el8 | ALSA-2022:7623 |
| AlmaLinux 8 | dovecot-mysql | Fixed | 1:2.3.16-3.el8 | ALSA-2022:7623 |
| AlmaLinux 8 | dovecot-pgsql | Fixed | 1:2.3.16-3.el8 | ALSA-2022:7623 |
| AlmaLinux 8 | dovecot-pigeonhole | Fixed | 1:2.3.16-3.el8 | ALSA-2022:7623 |
| Rocky Linux 9 | dovecot | Fixed | 1:2.3.16-7.el9 | RLSA-2022:8208 |
| Rocky Linux 8 | dovecot | Fixed | 1:2.3.16-3.el8 | RLSA-2022:7623 |
| Alpine Linux 3.24 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.23 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.22 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.21 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.20 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.19 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.18 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
| Alpine Linux 3.17 | dovecot | Fixed | 2.3.19.1-r5 | ALPINE-CVE-2022-30550 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/202310-19 (vendor-advisory)
References
- https://dovecot.org/security
- https://www.dovecot.org/download/
- https://www.openwall.com/lists/oss-security/2022/07/08/1
- https://lists.debian.org/debian-lts-announce/2022/09/msg00032.html
- https://security.gentoo.org/glsa/202310-19
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.