CVE-2021-21393
MEDIUM 6.5CVSS 3.1Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints
Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.28.0 Synapse is missing input validation of some parameters on the endpoints used to confirm third-party identifiers could cause excessive use of disk space and memory leading to resource exhaustion. Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them. Refer to referenced GitHub security advisory for additional details including workarounds.
- Published
- 12 Apr 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-jrh7-mhhx-6h88PYSEC-2021-26
- Sources
- NVDJSONOSV GHSA-jrh7-mhhx-6h88JSONOSV PYSEC-2021-26JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | synapsecpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:* |
> 0.24.0, < 1.28.0 | 1.28.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | PyPI | matrix-synapse | < 1.28.0 | 1.28.0 |
References
- https://github.com/matrix-org/synapse/pull/9321 · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/synapse/pull/9393 · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/synapse/security/advisories/GHSA-jrh7-mhhx-6h88 · Patch, Third Party Advisory, WEB, ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/
- https://pypi.org/project/matrix-synapse/ · Product, Third Party Advisory, WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-21393 · ADVISORY
- https://github.com/matrix-org/synapse/commit/3f58fc848d0002de4605bed91603a1f9f245d128 · WEB
- https://github.com/matrix-org/synapse/commit/d2f0ec12d5c8f113095408888e87e191ac546499 · WEB
- https://github.com/matrix-org/synapse · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-26.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 12 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2021)