# CVE-2021-21393: Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-04-12 · Modified: 2024-08-03
- Aliases: GHSA-jrh7-mhhx-6h88, PYSEC-2021-26, UBUNTU-CVE-2021-21393, DEBIAN-CVE-2021-21393
- Record: https://cvemate.com/vulnerability/CVE-2021-21393 · JSON: https://cvemate.com/vulnerability/CVE-2021-21393/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.596%, percentile 76.582%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian matrix-synapse (Debian): \< 1.28.0-1
- ubuntu matrix-synapse (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 34
- matrix-org synapse: \< 1.28.0
- matrix synapse: \> 0.24.0, \< 1.28.0
- PyPI matrix-synapse (PyPI): \< 1.28.0

## References

- <https://pypi.org/project/matrix-synapse/>
- <https://github.com/matrix-org/synapse/pull/9321>
- <https://github.com/matrix-org/synapse/pull/9393>
- <https://github.com/matrix-org/synapse/security/advisories/GHSA-jrh7-mhhx-6h88>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21393>
- <https://github.com/matrix-org/synapse/commit/3f58fc848d0002de4605bed91603a1f9f245d128>
- <https://github.com/matrix-org/synapse/commit/d2f0ec12d5c8f113095408888e87e191ac546499>
- <https://github.com/matrix-org/synapse>
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-26.yaml>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY>
- <https://pypi.org/project/matrix-synapse>
- <https://ubuntu.com/security/CVE-2021-21393>
- <https://www.cve.org/CVERecord?id=CVE-2021-21393>
- <https://security-tracker.debian.org/tracker/CVE-2021-21393>

---

Data as of 2026-12-05T06:27:08.723Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
