CWE
20
Advisory Published
Advisory Published
Updated

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

First published: Mon 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 `account_threepid_delegates.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`

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Matrix Synapse>0.17.0<1.28.0
Fedoraproject Fedora=34
pip/matrix-synapse<1.28.0
1.28.0
>0.17.0<1.28.0
=34

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-21394?

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

  • What is the severity of CVE-2021-21394?

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

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

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

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203