{"id":"BIT-discourse-2025-24808","summary":"Discourse has race condition when adding users to a group DM","details":"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.","aliases":["CVE-2025-24808","GHSA-hfcx-qjw6-573r"],"modified":"2026-09-10T16:01:30.954515007Z","published":"2025-03-28T09:46:39.640Z","database_specific":{"severity":"Medium","cpes":["cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*"]},"references":[{"type":"FIX","url":"https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24808"}],"affected":[{"package":{"name":"discourse","ecosystem":"Bitnami","purl":"pkg:bitnami/discourse"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.4.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/discourse/BIT-discourse-2025-24808.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}],"schema_version":"1.9.0"}