{"id":"UBUNTU-CVE-2022-30550","details":"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.","modified":"2026-01-30T02:11:52.936498Z","published":"2022-07-07T00:00:00Z","related":["USN-5509-1"],"upstream":["CVE-2022-30550"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-30550"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/07/06/9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5509-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-30550"}],"affected":[{"package":{"name":"dovecot","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/dovecot@1:2.2.9-1ubuntu2.6+esm4?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.1.7-7ubuntu3","1:2.2.9-1ubuntu1","1:2.2.9-1ubuntu2","1:2.2.9-1ubuntu2.1","1:2.2.9-1ubuntu2.3","1:2.2.9-1ubuntu2.4","1:2.2.9-1ubuntu2.5","1:2.2.9-1ubuntu2.6","1:2.2.9-1ubuntu2.6+esm1","1:2.2.9-1ubuntu2.6+esm2","1:2.2.9-1ubuntu2.6+esm3","1:2.2.9-1ubuntu2.6+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-core","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-dev","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-imapd","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-ldap","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-mysql","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-sieve","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-solr","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.2.9-1ubuntu2.6+esm4"},{"binary_name":"mail-stack-delivery","binary_version":"1:2.2.9-1ubuntu2.6+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30550.json"}},{"package":{"name":"dovecot","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/dovecot@1:2.2.22-1ubuntu2.14?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.2.18-2ubuntu2","1:2.2.22-1ubuntu1","1:2.2.22-1ubuntu2","1:2.2.22-1ubuntu2.1","1:2.2.22-1ubuntu2.2","1:2.2.22-1ubuntu2.3","1:2.2.22-1ubuntu2.4","1:2.2.22-1ubuntu2.6","1:2.2.22-1ubuntu2.7","1:2.2.22-1ubuntu2.8","1:2.2.22-1ubuntu2.9","1:2.2.22-1ubuntu2.10","1:2.2.22-1ubuntu2.11","1:2.2.22-1ubuntu2.12","1:2.2.22-1ubuntu2.13","1:2.2.22-1ubuntu2.14"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-core","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-dev","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-imapd","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-ldap","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-lucene","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-mysql","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-sieve","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-solr","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.2.22-1ubuntu2.14"},{"binary_name":"mail-stack-delivery","binary_version":"1:2.2.22-1ubuntu2.14"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30550.json"}},{"package":{"name":"dovecot","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dovecot@1:2.2.33.2-1ubuntu4.8?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.2.33.2-1ubuntu4.8"}]}],"versions":["1:2.2.27-3ubuntu1","1:2.2.33.2-1ubuntu1","1:2.2.33.2-1ubuntu2","1:2.2.33.2-1ubuntu3","1:2.2.33.2-1ubuntu4","1:2.2.33.2-1ubuntu4.1","1:2.2.33.2-1ubuntu4.2","1:2.2.33.2-1ubuntu4.3","1:2.2.33.2-1ubuntu4.4","1:2.2.33.2-1ubuntu4.5","1:2.2.33.2-1ubuntu4.6","1:2.2.33.2-1ubuntu4.7"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-core","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-dev","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-imapd","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-ldap","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-mysql","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-sieve","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-solr","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.2.33.2-1ubuntu4.8"},{"binary_name":"mail-stack-delivery","binary_version":"1:2.2.33.2-1ubuntu4.8"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30550.json"}},{"package":{"name":"dovecot","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dovecot@1:2.3.7.2-1ubuntu3.6?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.3.7.2-1ubuntu3.6"}]}],"versions":["1:2.3.4.1-5ubuntu3","1:2.3.7.2-1ubuntu1","1:2.3.7.2-1ubuntu2","1:2.3.7.2-1ubuntu3","1:2.3.7.2-1ubuntu3.1","1:2.3.7.2-1ubuntu3.2","1:2.3.7.2-1ubuntu3.3","1:2.3.7.2-1ubuntu3.4","1:2.3.7.2-1ubuntu3.5"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-auth-lua","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-core","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-dev","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-imapd","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-ldap","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-lucene","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-mysql","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-sieve","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-solr","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"dovecot-submissiond","binary_version":"1:2.3.7.2-1ubuntu3.6"},{"binary_name":"mail-stack-delivery","binary_version":"1:2.3.7.2-1ubuntu3.6"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30550.json"}},{"package":{"name":"dovecot","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dovecot@1:2.3.16+dfsg1-3ubuntu2.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.3.16+dfsg1-3ubuntu2.1"}]}],"versions":["1:2.3.13+dfsg1-1ubuntu3","1:2.3.16+dfsg1-3ubuntu1","1:2.3.16+dfsg1-3ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-auth-lua","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-core","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-dev","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-imapd","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-ldap","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-lucene","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-mysql","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-sieve","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-solr","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-submissiond","binary_version":"1:2.3.16+dfsg1-3ubuntu2.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30550.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}