CVE-2021-21393 json
Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints
published 2021-04-12 5 y ago modified 2026-07-08 4 mo ago also GHSA-jrh7-mhhx-6h88 , PYSEC-2021-26 , EUVD-2021-0129
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi matrix-synapse 1.28.0
- matrix synapse 1.28.0
- github.com/matrix-org/synapse@3f58fc8 commit
- github.com/matrix-org/synapse@d2f0ec1 commit
- github.com/matrix-org/synapse#9321 pull request
- github.com/matrix-org/synapse#9393 pull request
- github.com/matrix-org/synapse/security/advisories/GHSA-jrh7-mhhx-6h88 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-21393 updated cvss 5.3
matrix-synapse: Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.60% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | matrix-synapse | <1.28.0 |
1.28.0 |
Affected products
- matrix-org synapse
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/matrix-org/synapse/pull/9321
web, patch, third-party-advisory
-
github.com
/matrix-org/synapse/pull/9393
web, patch, third-party-advisory
-
github.com
/matrix-org/synapse/security/advisories/GHSA-jrh7-mhhx-6h88
web, patch, third-party-advisory, advisory
-
github.com
/matrix-org/synapse/commit/3f58fc848d0002de4605bed91603a1f9f245d128
web
-
github.com
/matrix-org/synapse/commit/d2f0ec12d5c8f113095408888e87e191ac546499
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/
vendor-advisory
-
pypi.org
/project/matrix-synapse/
product, third-party-advisory, package
-
nvd.nist.gov
/vuln/detail/CVE-2021-21393
advisory
-
github.com
/matrix-org/synapse
package
-
github.com
/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-26.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY
web
-
pypi.org
/project/matrix-synapse
web
Sources
- CVE List CVE-2021-21393
- GitHub Advisory GHSA-jrh7-mhhx-6h88
- NVD CVE-2021-21393
- OSV PYSEC-2021-26
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.