Dovecot OTP authentication is susceptible to a replay attack under certain conditions. Specifically, if the authentication cache is enabled and a username is modified within the passdb, OTP credentials can be cached, allowing the same OTP reply to be valid for subsequent login attempts. An attacker observing an OTP exchange could potentially log in as the user. The issue occurs when authentication happens over an unsecure connection.