CVE-2021-21273
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.
EPSS 0.32% · 55.6th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:Pro:20.04:LTS | matrix-synapse | 0, 1.4.0-1, 1.5.0-1 |
| Ubuntu:Pro:18.04:LTS | matrix-synapse | 0, 0.19.2+dfsg-6, 0.24.0+dfsg-1 |
Exploit Intelligence
- https://github.com/matrix-org/synapse/releases/tag/v1.25.0 (circl)
- https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p (circl)
- https://github.com/matrix-org/synapse/pull/8821 (circl)
- https://github.com/matrix-org/synapse/commit/30fba6210834a4ecd91badf0c8f3eb278b72e746 (circl)
- FEDORA-2021-a627cfd31e (circl)
Timeline
- Feb 26, 2021 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- May 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2021-21273 third-party-advisory
- https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p third-party-advisory
- https://github.com/matrix-org/synapse/commit/30fba6210834a4ecd91badf0c8f3eb278b72e746 third-party-advisory
- https://github.com/matrix-org/synapse/pull/8821 third-party-advisory
- https://github.com/matrix-org/synapse/releases/tag/v1.25.0 third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2021-21273 third-party-advisory