All reports
Medium

dovecot: local attacker can login as any user and access their emails

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-29157

Probability of exploitation in the next 30 days: 0.47%

FIRST EPSS · 2026-11-22

Description

Dovecot before 2.3.15 allows ../ Path Traversal. An attacker with access to the local filesystem can trick OAuth2 authentication into using an HS256 validation key from an attacker-controlled location. This occurs during use of local JWT validation with the posix fs driver.

A flaw was found in dovecot where it did not properly parse the kid and azp fields in JWT tokens. This flaw allows a local attacker to bypass dovecot's authentication, and access a user's emails. The highest threat from this vulnerability is to confidentiality and integrity.