CVE-2026-27851
dovecot: Dovecot: SQL/LDAP injection via incorrect safe filter interpretation with variable expansion
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | dovecot | 2.4.4-r0 |
| alpine 3.24 | dovecot | 2.4.4-r0 |
| alpine edge | dovecot | 2.4.4-r0 |
| debian 13 | dovecot | 1:2.4.1+dfsg1-6+deb13u6 |
| debian 14 | dovecot | 1:2.4.4+dfsg1-1 |
| rapidfort alpine 3.20 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.21 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.22 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.23 | dovecot | 2.4.4-r0 |
| rapidfort debian 12 | dovecot | 1:2.4.1+dfsg1-6+deb13u6, 1:2.4.4+dfsg1-1 |
| rapidfort debian 13 | dovecot | 1:2.4.1+dfsg1-6+deb13u6, 1:2.4.4+dfsg1-1 |
| rapidfort fedora 43 | dovecot, dovecot-devel, dovecot-mysql and 2 more | 1:2.4.4-1.fc43 |
Show all 23 entries from 15 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | dovecot | 2.4.4-r0 |
| alpine 3.24 | dovecot | 2.4.4-r0 |
| alpine edge | dovecot | 2.4.4-r0 |
| debian 13 | dovecot | 1:2.4.1+dfsg1-6+deb13u6 |
| debian 14 | dovecot | 1:2.4.4+dfsg1-1 |
| rapidfort alpine 3.20 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.21 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.22 | dovecot | 2.4.4-r0 |
| rapidfort alpine 3.23 | dovecot | 2.4.4-r0 |
| rapidfort debian 12 | dovecot | 1:2.4.1+dfsg1-6+deb13u6, 1:2.4.4+dfsg1-1 |
| rapidfort debian 13 | dovecot | 1:2.4.1+dfsg1-6+deb13u6, 1:2.4.4+dfsg1-1 |
| rapidfort fedora 43 | dovecot | 1:2.4.4-1.fc43 |
| rapidfort fedora 43 | dovecot-devel | 1:2.4.4-1.fc43 |
| rapidfort fedora 43 | dovecot-mysql | 1:2.4.4-1.fc43 |
| rapidfort fedora 43 | dovecot-pgsql | 1:2.4.4-1.fc43 |
| rapidfort fedora 43 | dovecot-pigeonhole | 1:2.4.4-1.fc43 |
| Red Hat | dovecot | no fix listed |
| Red Hat | dovecot-devel | no fix listed |
| Red Hat | dovecot-mysql | no fix listed |
| Red Hat | dovecot-pgsql | no fix listed |
| Red Hat | dovecot-pigeonhole | no fix listed |
| ubuntu 25.10 | dovecot | 1:2.4.1+dfsg1-5ubuntu4.2 |
| ubuntu 26.04 | dovecot | 1:2.4.2+dfsg1-3ubuntu2.1 |
References
- https://access.redhat.com/security/cve/CVE-2026-27851
- https://bugzilla.redhat.com/show_bug.cgi?id=2476471
- https://documentation.open-xchange.com/dovecot/security/advisories/csaf/2026/oxdc-adv-2026-0002.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-27851
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27851.json
- https://ubuntu.com/security/notices/USN-8365-1
- https://www.cve.org/CVERecord?id=CVE-2026-27851
- https://www.openwall.com/lists/oss-security/2026/05/12/6