CVE-2021-21394: Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints

Published Apr 12, 2021
·
Updated

Impact 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.

Patches The issue is fixed by #9321.

Workarounds Depending on the needs and configuration of the homeserver a few options are available:

1. Using email as third-party identifiers be disabled by not configuring the email setting. 2. Using phone numbers as third-party identifiers can be disabled by ensuring that accountthreepiddelegates.msisdn is not configured. 3. Additionally, the affected endpoint patterns can be blocked at a reverse proxy:

^/matrix/client/(r0|unstable)/register/email ^/matrix/client/(r0|unstable)/register/msisdn ^/matrix/client/(r0|unstable)/account/password ^/matrix/client/(r0|unstable)/account/3pid

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.17.0<1.28.0
Fedoraproject Fedora=34

Event History

Apr 12, 2021
CVE Published
via MITRE·08:45 PM
Data Sourced
via MITRE·08:45 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
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-21394?

CVE-2021-21394 is a vulnerability found in Synapse, a Matrix reference homeserver, that allows for input validation bypass.

2

What is the severity of CVE-2021-21394?

The severity of CVE-2021-21394 is medium with a CVSS score of 6.5.

3

How does CVE-2021-21394 impact Synapse?

CVE-2021-21394 allows attackers to bypass input validation on certain endpoints used to confirm third-party identity.

4

How do I fix CVE-2021-21394?

To fix CVE-2021-21394, it is recommended to update Synapse to version 1.28.0 or later.

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2021-21394?

The CWE ID for CVE-2021-21394 is CWE-20, which stands for Improper Input Validation.

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