CVE-2021-21273
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, requests to user provided domains were not restricted to external IP addresses when calculating the key validity for third-party invite events and sending push notifications. This could cause Synapse to make requests to internal infrastructure. The type of request was not controlled by the user, although limited modification of request bodies was possible. For the most thorough protection server administrators should remove the deprecated `federation_ip_range_blacklist` from their settings after upgrading to Synapse v1.25.0 which will result in Synapse using the improved default IP address restrictions. See the new `ip_range_blacklist` and `ip_range_whitelist` settings if more specific control is necessary.
Weakness
- CWE-601: URL Redirection to Untrusted Site
Timeline
- 2021-02-26Published by the CNA17:25 UTC
- 2021-02-26GitHub advisory published (GHSA-v936-j8gp-9q3p)same day
Exploit and advisory records
GitHub advisory GHSA-v936-j8gp-9q3p, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI matrix-synapse | 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 | 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/30fba6210834a4ecd91badf0c8f3eb278b72e746
- https://github.com/matrix-org/synapse/pull/8821
- https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p
- 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-21273'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-21273'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-21273'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-21273'
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).