# CVE-2025-24808: Discourse has race condition when adding users to a group DM

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-03-26T14:08:38.915Z
- Modified: 2026-09-10T16:01:30.954Z
- Also known as: BIT-DISCOURSE-2025-24808, GHSA-hfcx-qjw6-573r
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Discourse is an open-source discussion platform. Prior to versions `3.3.4` on the `stable` branch and `3.4.0.beta5` on the `beta` branch, someone who is about to reach the limit of users in a group DM may send requests to add new users in parallel. The requests might all go through ignoring the limit due to a race condition. The patch in versions `3.3.4` and `3.4.0.beta5` uses the `lock` step in service to wrap part of the `add_users_to_channel` service inside a distributed lock/mutex in order to avoid the race condition.

(As written by CVE List.)

## Affected

- discourse discourse: < 3.3.4; >= 3.4.0.beta1, < 3.4.0.beta5; before 3.3.3; before 3.4.0; 3.4.0
- discourse (Bitnami): before 3.4.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r> (advisory, vendor-advisory)
- <https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24808> (web)

## Sources

- CVE List: [CVE-2025-24808](https://www.cve.org/CVERecord?id=CVE-2025-24808), CVE Terms of Use, modified 2025-03-26
- NVD: [CVE-2025-24808](https://nvd.nist.gov/vuln/detail/CVE-2025-24808), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2025-24808](https://osv.dev/vulnerability/BIT-DISCOURSE-2025-24808), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-24808 · Whole record: https://cve.day/CVE-2025-24808.json · Rebuilt by cve.day 2026-11-25T22:58:55.523Z
