
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-30189 is an authentication cache misconfiguration vulnerability in Dovecot IMAP Server that causes incorrect user session data to be served from cache, effectively allowing subsequent logins to authenticate as the first cached user. It affects Dovecot versions 2.4.0 and 2.4.1, and was fixed in version 2.4.2. The vulnerability was reported by researcher "Erik" and disclosed on October 29, 2025, with the CVE published on October 31, 2025. It carries a CVSS v3.1 base score of 7.4 (High) (Openwall OSS-Sec, Red Hat CVE).
The root cause is classified as CWE-1250 (Improper Preservation of Consistency Between Independent Representations of Shared State). When authentication caching is enabled with the oauth2 passdb, passwd passdb or userdb, or passwd userdb drivers, the cache key %u no longer expands to the same value as %{user}, causing all users sharing the same cache key to receive the cached credentials of the first authenticated user. This means that after the first successful login, all subsequent login attempts — regardless of the actual credentials provided — are resolved against the cached entry of the initial user. The vulnerability is network-exploitable with high attack complexity and requires no privileges or user interaction (Openwall OSS-Sec).
Successful exploitation results in unauthorized access to other users' email accounts and data, representing a high confidentiality and integrity impact. An attacker who logs in after a legitimate user could gain full access to that user's mailbox, send emails on their behalf, or modify stored messages. The vulnerability has no availability impact but poses significant risk in multi-tenant or shared mail server environments where many users authenticate through the same Dovecot instance (Openwall OSS-Sec, Red Hat CVE).
No publicly available exploits are known for CVE-2025-30189, and it has not been observed being exploited in the wild (Openwall OSS-Sec). The EPSS score is approximately 0.031%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity, as the attacker must time their login to occur after a legitimate user has populated the cache with their credentials.
oauth2 passdb, passwd passdb/userdb, or passwd userdb drivers.%u.dovecot.log or /var/log/mail.log.auth_cache_size set to a non-zero value combined with oauth2, passwd, or passwd-file passdb/userdb drivers — indicating a vulnerable configuration (Openwall OSS-Sec).The vulnerability is fixed in Dovecot version 2.4.2. Administrators should upgrade to 2.4.2 or later as the primary remediation. The official patch is available at the Dovecot core repository comparing commits a70ce7d3e2f983979e971414c5892c4e30197231 through 34caed79b76a7b82a2a9c94cf35371bec6c2b826. As an immediate workaround, disabling the authentication cache globally (setting auth_cache_size = 0) or disabling it specifically for the affected passdb/userdb drivers will prevent exploitation. Fedora, SUSE, and other Linux distributions have released updated packages incorporating the fix (Openwall OSS-Sec, Red Hat CVE).
The vulnerability was disclosed by Aki Tuomi of the Dovecot team via the Dovecot-news mailing list and cross-posted to the oss-security list, following responsible disclosure from researcher "Erik" who reported the issue on July 25, 2025 (Openwall OSS-Sec). Security community members on Mastodon and Bluesky noted the disclosure, and a technical write-up was published by Hendry Adrian covering the auth cache access control flaw. Linux security outlets including Linuxiac, Pro-Linux, and LinuxSecurity covered the Dovecot 2.4.2 release and associated security fixes. The vulnerability received moderate attention given its limited scope to Dovecot 2.4.x versions.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."