CVE-2022-21684: User can bypass approval when invited to Discourse
Discourse is an open source discussion platform. Versions prior to 2.7.13 in stable, 2.8.0.beta11 in beta, and 2.8.0.beta11 in tests-passed allow some users to log in to a community before they should be able to do so. A user invited via email to a forum with mustapproveusers enabled is going to be automatically logged in, bypassing the check that does not allow unapproved users to sign in. They will be able to do everything an approved user can do. If they logout, they cannot log back in. This issue is patched in the stable version 2.7.13, beta version 2.8.0.beta11, and tests-passed version 2.8.0.beta11. One may disable invites as a workaround. Administrators can increase mintrustleveltoallowinvite to reduce the attack surface to more trusted users.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-21684?
CVE-2022-21684 has a medium severity rating due to improper user approval flow.
How do I fix CVE-2022-21684?
To fix CVE-2022-21684, update Discourse to version 2.7.13 or later in the stable branch and 2.8.0-beta11 or later in the beta branches.
What versions of Discourse are affected by CVE-2022-21684?
CVE-2022-21684 affects Discourse versions prior to 2.7.13 in stable, and all beta versions before 2.8.0-beta11.
What kind of vulnerability is CVE-2022-21684?
CVE-2022-21684 is a vulnerability that allows certain users to log in to the forum before they have been approved.
Who is impacted by CVE-2022-21684?
Anyone who is invited via email to the forum with user approval requirements may be impacted by CVE-2022-21684.