Nexcloud Mail app temporarily stores cleartext password in database
Description
Nextcloud mail is an email app for the nextcloud home server platform. In versions prior to 2.2.2 user's passwords were stored in cleartext in the database during the duration of OAuth2 setup procedure. Any attacker or malicious user with access to the database would have access to these user passwords until the OAuth setup has been completed. It is recommended that the Nextcloud Mail app is upgraded to 2.2.2. There are no known workarounds for this issue.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Nextcloud Mail prior to 2.2.2 stored user passwords in cleartext in the database during OAuth2 setup, exposing them to attackers with database access.
Vulnerability
Nextcloud Mail versions prior to 2.2.2 temporarily stored user passwords in cleartext in the database during the OAuth2 setup procedure. The password was stored in the password field of the mail account configuration even when OAuth2 authentication was being configured, instead of leaving the field empty until the access token was obtained [1][2].
Exploitation
An attacker or malicious user with database access (e.g., via SQL injection or compromised database credentials) could read the cleartext passwords of users who were in the process of setting up an OAuth2 mail account. No special network position or user interaction beyond normal OAuth2 setup is required [1].
Impact
Successful exploitation results in disclosure of user passwords, compromising confidentiality. The attacker gains unauthorized access to the user's mail account credentials, potentially leading to further compromise of the email account and related services [1].
Mitigation
The vulnerability is fixed in Nextcloud Mail version 2.2.2, released on 2023-02-06. Users should upgrade to this version or later. There are no known workarounds for this issue [1].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- nextcloud/security-advisoriesv5Range: < 2.2.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/nextcloud/mail/pull/7797mitrex_refsource_MISC
- github.com/nextcloud/security-advisories/security/advisories/GHSA-g86r-x755-93f4mitrex_refsource_CONFIRM
- hackerone.com/reports/1806275mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.