ZeroHour

CVE-2026-73208

moderate

Improper Authentication in Dovecot OAuth2: Tokens for Other Purposes Accepted

CVSS 3.1
7.4 high
EPSS
<1%p17
Published
()
Modified
AI analysis

Dovecot's OAuth2 authentication mishandles token validation: when the identity provider's token response contains no scope claim, Dovecot substitutes the audience claim in its place and checks it against the configured required scopes, even though the audience only names a token's intended recipient, not what the token is allowed to do. An attacker who holds a valid token minted for a different purpose can therefore authenticate if that token's audience value happens to match a scope name configured in Dovecot, which requires a value collision and thus corresponds to the high attack complexity in the CVSS score. The attacker gains access they should have been denied — potentially including mailbox access with confidentiality and integrity impact — using a token that carries no relevant permissions. Affected parties are Dovecot deployments that authenticate via OAuth2 against an identity provider that omits scope claims (or where configured scope names collide with audience values), and the flaw also masks IdP misconfigurations in which no scopes are being issued at all. No public proof-of-concept or known exploitation exists; EPSS is 0.3% and the CVE is not in CISA KEV.

What to do: Upgrade Dovecot to a non-vulnerable version per the Open-Xchange/vendor advisory (specific fixed version numbers are not given in the available data). Until you can patch, ensure your identity provider issues a scope claim on every token used with Dovecot, and verify that no configured scope name matches any token audience value. Also review IdP configuration, since this bug can hide a misconfiguration where scopes are not issued at all.

Affected
Open-Xchange (Dovecot) Dovecot (OAuth2 authentication mechanism)
Estimated exposure
moderate≈1,000–10,000 mail-server deployments (Dovecot is widely deployed, but only the minority using its OAuth2 authentication is affected) — estimate — Dovecot is one of the most widely deployed open-source IMAP/POP3 servers (default on many Linux distributions and common at mail hosts), but the flaw requires its OAuth2 authentication mechanism, a minority configuration adopted mainly by…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

An attacker that holds a token intended for a different purpose can authenticate, because when an OAuth2 token response does not contain a scope claim, the audience claim is used in its place and checked against the configured required scopes. These are different concepts, and the audience claim does not describe what a token is allowed to do. A token that grants no relevant permissions can be accepted because its intended recipient value happens to match a configured scope name, granting access that should have been denied. It also hides an identity provider misconfiguration where scopes are not being issued at all. Ensure the identity provider issues a scope claim for all tokens used with Dovecot, and that configured scope names do not match audience values. Update to non-vulnerable version. No publicly available exploits are known.

Weakness
CWE-287
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

In the news

No ingested article mentions this CVE yet.