CVE-2022-31025 Invite bypasses user approval in Discourse

Low 2.6 Published Updated

Attackers can bypass user approval requirements on Discourse sites using single sign-on by exploiting invite mechanisms, potentially gaining unauthorized access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-31025?

CVE-2022-31025 is a low-severity authentication bypass vulnerability in Discourse Discourse, published on 3 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Discourse is an open source platform for community discussion. Prior to version 2.8.4 on the `stable` branch and 2.9.0beta5 on the `beta` and `tests-passed` branches, inviting users on sites that use single sign-on could bypass the `must_approve_users` check and invites by staff are always approved automatically. The issue is patched in Discourse version 2.8.4 on the `stable` branch and version `2.9.0.beta5` on the `beta` and `tests-passed` branches. As a workaround, disable invites or increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.

Weakness: CWE-285

Which versions are affected by CVE-2022-31025?

1 open source package ship an affected version, including discourse. It affects 1 product.

PackageAffectedFixed in
discourse BitnamiAll versions2.8.4

Products include Discourse Discourse.

How do I fix CVE-2022-31025?

Upgrade discourse to 2.8.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2022-31025 being exploited?

There is no known exploitation of CVE-2022-31025 in the wild and no public exploit code.

All Discourse Discourse vulnerabilities

Sources

Also known as BIT-discourse-2022-31025, GHSA-x7jh-mx5q-6f9q.

Is CVE-2022-31025 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free