Skip to content

Invalid device keys degrade federation functionality

High
dkasak published GHSA-fh66-fcv5-jjfr Oct 8, 2025

Package

pip matrix-synapse (pip)

Affected versions

<1.138.3, =1.139.0

Patched versions

1.139.1, 1.139.2, 1.138.3, 1.138.4

Description

Impact

Lack of validation for device keys in Synapse before 1.138.3 and in Synapse 1.139.0 allow an attacker registered on the victim homeserver to degrade federation functionality, unpredictably breaking outbound federation to other homeservers.

Patches

Patched in Synapse 1.138.3, 1.138.4, 1.139.1, and 1.139.2.

Note that even though 1.138.3 and 1.139.1 fix the vulnerability, they inadvertently introduced an unrelated regression. For this reason, we recommend skipping these releases and upgrading straight to 1.138.4 and 1.139.2.

Workarounds

The vulnerability can only be exploited by users registered on the victim homeserver.

Severity

High

CVE ID

CVE-2025-61672

Weaknesses

Improper Validation of Specified Type of Input

The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type. Learn more on MITRE.

Credits