PyPi: Matrix-Synapse

CVE-2021-21273

Safety vulnerability ID: 39661

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Feb 26, 2021 Updated at Dec 11, 2024
Scan your Python projects for vulnerabilities →

Advisory

Matrix-synapse 1.25.0 includes a fix for CVE-2021-21273: Open redirects on some federation and push requests.
https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p

Affected package

matrix-synapse

Latest version: 1.121.1

Homeserver for the Matrix decentralised comms protocol

Affected versions

Fixed versions

Vulnerability changelog

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. See CVE-2021-21273.


CONFIRM:https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p: https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p
MISC:https://github.com/matrix-org/synapse/commit/30fba6210834a4ecd91badf0c8f3eb278b72e746: https://github.com/matrix-org/synapse/commit/30fba6210834a4ecd91badf0c8f3eb278b72e746
MISC:https://github.com/matrix-org/synapse/pull/8821: https://github.com/matrix-org/synapse/pull/8821
MISC:https://github.com/matrix-org/synapse/releases/tag/v1.25.0: https://github.com/matrix-org/synapse/releases/tag/v1.25.0

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

MEDIUM 6.1

CVSS v3 Details

MEDIUM 6.1
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
REQUIRED
Scope (S)
CHANGED
Confidentiality Impact (C)
LOW
Integrity Impact (I)
LOW
Availability Availability (A)
NONE

CVSS v2 Details

MEDIUM 5.8
Access Vector (AV)
NETWORK
Access Complexity (AC)
MEDIUM
Authentication (Au)
NONE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
PARTIAL
Availability Impact (A)
NONE