SecurityContext

CVE-2022-21684: Discourse - Authentication Bypass

  • Cve: CVE-2022-21684
  • Name: Discourse - Authentication Bypass
  • Description: 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 `must_approve_users` 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 `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.
  • Impact: Attackers can log in as unapproved users, gaining full access and bypassing approval controls, potentially leading to unauthorized access and privilege escalation.
  • Remediation: Update to version 2.7.13 for stable, 2.8.0.beta11 for beta, and 2.8.0.beta11 for tests-passed. As a workaround, disable invites or increase `min_trust_level_to_allow_invite`.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00858
  • Epss percentile: 0.59369
  • Assignee: [email protected]
  • Published at: 2022-01-13T21:15:08Z
  • Age in days: 1776
  • Modified at: 2026-06-17T04:26:45Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21684
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-287Improper Authentication

References

Same in every row:

  • Source: nvd
UrlTags
https://meta.discourse.org/t/invite-redemption-allowed-user-to-access-forum-before-approval/214328Issue Tracking, Patch, Vendor Advisory
https://github.com/discourse/discourse/commit/584c6a2e8bc705072b09a9c4b55126d6f8ed4ad2Patch, Third Party Advisory
https://github.com/discourse/discourse/security/advisories/GHSA-p63q-jp48-h8xhPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
discourse:discourse= 2.8.0 beta10, = 2.8.0 beta9, = 2.8.0 beta8, = 2.8.0 beta7, = 2.8.0 beta6, = 2.8.0 beta5, = 2.8.0 beta4, = 2.8.0 beta3, = 2.8.0 beta1, = 2.8.0 beta2, < 2.7.13nonvd/v1/products/discourse/discourse

Projects

RepositoryLink kindsIndexedUrl
discourse/discoursecommit, fix, security_advisoryyes/v1/repositories/discourse/discourse

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 22639
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports