Skip to content
OpenAdvisories
Low · 3.1 CVE-2021-21273 EUVD-2021-0123GHSA-v936-j8gp-9q3pPYSEC-2021-131

Open redirects on some federation and push requests

Published Feb 26, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
matrix-org synapse < 1.25.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS matrix-synapse No fix yet —
Ubuntu Pro 18.04 LTS matrix-synapse No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI matrix-synapse < 1.25.0 1.25.0 GHSA-v936-j8gp-9q3p

References