All reports
High

dovecot: Dovecot: SQL/LDAP injection via incorrect safe filter interpretation with variable expansion

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-27851

Probability of exploitation in the next 30 days: 0.41%

FIRST EPSS · 2026-11-22

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.

A flaw was found in Dovecot. When the safe filter is used with variable expansion, subsequent pipelines on the same string are incorrectly interpreted as safe, allowing unsafe data to be unescaped. This can enable SQL (Structured Query Language) or LDAP (Lightweight Directory Access Protocol) injection attacks when used in authentication, potentially leading to unauthorized access or information disclosure.