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

Published Apr 12, 2021
·
Updated

Impact Missing input validation of some parameters on the groups (also known as communities) endpoints could cause excessive use of disk space and memory leading to resource exhaustion. Additionally clients may have issues rendering large fields.

Patches This issue is fixed by #9321 and #9393.

Workarounds The groups feature can be disabled (by setting enablegroupcreation to False) to mitigate this issue. Note that it is disabled by default.

Other information 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.

Other sources

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.

Affected Software

3 affected componentsFixes available
pip/matrix-synapse<1.28.0
1.28.0
matrix synapse>0.24.0<1.28.0
Fedoraproject Fedora=34

Event History

Apr 12, 2021
CVE Published
via MITRE·09:35 PM
Data Sourced
via MITRE·09:35 PM
DescriptionSeverityWeakness
Apr 13, 2021
Advisory Published
via GitHub·03:12 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-21393?

CVE-2021-21393 is a vulnerability in Synapse, a Matrix reference homeserver written in Python.

2

What is Synapse?

Synapse is a Matrix reference homeserver written in Python.

3

What is Matrix?

Matrix is an ecosystem for open federated Instant Messaging and VoIP.

4

What is the severity of CVE-2021-21393?

CVE-2021-21393 has a severity level of medium.

5

How do I fix CVE-2021-21393?

To fix CVE-2021-21393, update to Synapse version 1.28.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203