CVE-2021-21274
Description
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.25.0, a malicious homeserver could redirect requests to their .well-known file to a large file. This can lead to a denial of service attack where homeservers will consume significantly more resources when requesting the .well-known file of a malicious homeserver. This affects any server which accepts federation requests from untrusted servers. Issue is resolved in version 1.25.0. As a workaround the `federation_domain_whitelist` setting can be used to restrict the homeservers communicated with over federation.
Weakness
- CWE-400: Uncontrolled Resource Consumption
Timeline
- 2021-02-26Published by the CNA17:25 UTC
- 2021-03-01GitHub advisory published (GHSA-2hwx-mjrm-v3g8)3 days after publication
Exploit and advisory records
GitHub advisory GHSA-2hwx-mjrm-v3g8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI matrix-synapse | from 0.99.0 before 1.25.0 | 1.25.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| matrix synapse | from 0.99.0 before 1.25.0fixed in 1.25.0 | 1.25.0 |
| fedoraproject fedora | 34no fix listed | not listed |
References
- https://github.com/matrix-org/synapse/commit/ff5c4da1289cb5e097902b3e55b771be342c29d6
- https://github.com/matrix-org/synapse/pull/8950
- https://github.com/matrix-org/synapse/security/advisories/GHSA-2hwx-mjrm-v3g8
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/
- https://github.com/matrix-org/synapse/releases/tag/v1.25.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-21274'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-21274'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-21274'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-21274'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).