{"id":"CVE-2025-24808","state":"PUBLISHED","title":"Discourse has race condition when adding users to a group DM","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.","publishedAt":"2025-03-26T14:08:38.915Z","updatedAt":"2025-03-26T18:26:18.555Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse"],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"< 3.3.4","status":"affected"},{"version":">= 3.4.0.beta1, < 3.4.0.beta5","status":"affected"}]}],"references":["https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r","https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:08:47.682Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/24xxx/CVE-2025-24808.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-24808","state":"PUBLISHED","datePublished":"2025-03-26T14:08:38.915Z","dateUpdated":"2025-03-26T18:26:18.555Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-01-23T17:11:35.840Z"},"containers":{"cna":{"title":"Discourse has race condition when adding users to a group DM","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"< 3.3.4","status":"affected"},{"version":">= 3.4.0.beta1, < 3.4.0.beta5","status":"affected"}]}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r","name":"https://github.com/discourse/discourse/security/advisories/GHSA-hfcx-qjw6-573r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095","name":"https://github.com/discourse/discourse/commit/a16b2f224860f6678f89f5ffa012f0ede17e4095","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-03-26T14:14:38.212Z"},"source":{"advisory":"GHSA-hfcx-qjw6-573r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-26T18:26:11.826750Z","id":"CVE-2025-24808","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-26T18:26:18.555Z"}}]}}}