CVE-2022-39356 Discourse user account takeover via email and invite link

High 8.9 Published Updated

Attackers can take over any non-admin user's account by using an unscoped invitation link, requiring immediate upgrade or configuration change.

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-39356?

CVE-2022-39356 is a high-severity authentication bypass vulnerability in Discourse Discourse, published on 2 Nov 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 a platform for community discussion. Users who receive an invitation link that is not scoped to a single email address can enter any non-admin user's email and gain access to their account when accepting the invitation. All users should upgrade to the latest version. A workaround is temporarily disabling invitations with `SiteSetting.max_invites_per_day = 0` or scope them to individual email addresses.

Weakness: CWE-285

Which versions are affected by CVE-2022-39356?

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

PackageAffectedFixed in
discourse BitnamiAll versions2.8.10

Products include Discourse Discourse.

How do I fix CVE-2022-39356?

Upgrade discourse to 2.8.10 or later.

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

Is CVE-2022-39356 being exploited?

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

All Discourse Discourse vulnerabilities

Sources

Also known as BIT-discourse-2022-39356, GHSA-x8w7-rwmr-w278.

Is CVE-2022-39356 in your software?

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

Check your SBOMs for free