{"id":"UBUNTU-CVE-2026-27851","details":"When safe filter is used with variable expansion, all following pipelines on the same string are incorrectly interpreted as safe too, enabling unsafe data to be unescaped. This can enable SQL / LDAP injection attacks when used in authentication. Avoid using safe filter until on fixed version. No publicly available exploits are known.","modified":"2026-06-30T18:17:44.367409541Z","published":"2026-05-12T14:16:00Z","related":["USN-8365-1"],"upstream":["CVE-2026-27851"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-27851"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-27851"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2026/05/12/6"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8365-1"}],"affected":[{"package":{"name":"dovecot","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dovecot?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.4.1+dfsg1-5ubuntu4.2"}]}],"versions":["1:2.3.21.1+dfsg1-1ubuntu2","1:2.4.1+dfsg1-5ubuntu1","1:2.4.1+dfsg1-5ubuntu3","1:2.4.1+dfsg1-5ubuntu4","1:2.4.1+dfsg1-5ubuntu4.1"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-auth-lua","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_version":"1:2.4.1+dfsg1-5ubuntu4.2","binary_name":"dovecot-core"},{"binary_name":"dovecot-flatcurve","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-gssapi","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-imapd","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-ldap","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_version":"1:2.4.1+dfsg1-5ubuntu4.2","binary_name":"dovecot-mysql"},{"binary_name":"dovecot-pgsql","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-sieve","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_name":"dovecot-solr","binary_version":"1:2.4.1+dfsg1-5ubuntu4.2"},{"binary_version":"1:2.4.1+dfsg1-5ubuntu4.2","binary_name":"dovecot-sqlite"},{"binary_version":"1:2.4.1+dfsg1-5ubuntu4.2","binary_name":"dovecot-submissiond"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27851.json"}},{"package":{"name":"dovecot","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/dovecot?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.4.2+dfsg1-3ubuntu2.1"}]}],"versions":["1:2.4.1+dfsg1-5ubuntu4","1:2.4.1+dfsg1-5ubuntu5","1:2.4.2+dfsg1-3ubuntu1","1:2.4.2+dfsg1-3ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"dovecot-auth-lua","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-core","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-flatcurve","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-gssapi"},{"binary_name":"dovecot-imapd","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-ldap"},{"binary_name":"dovecot-lmtpd","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-managesieved","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_name":"dovecot-mysql","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-pgsql"},{"binary_name":"dovecot-pop3d","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-sieve"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-solr"},{"binary_name":"dovecot-sqlite","binary_version":"1:2.4.2+dfsg1-3ubuntu2.1"},{"binary_version":"1:2.4.2+dfsg1-3ubuntu2.1","binary_name":"dovecot-submissiond"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27851.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}