Advisory

GHSA-fh66-fcv5-jjfr

Also known as: CVE-2025-61672, PYSEC-2026-1612

Summary

Synapse's invalid device keys degrade federation functionality

Details

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, it is recommend to skip 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-10-08 17:51 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

matrix-synapse

PyPI · All systems

Affected

  • introduced 0, fixed 1.138.3 (ecosystem)

Fixed versions

1.138.3

Fix

  • Fixed version 1.138.3
    pip install --upgrade matrix-synapse==1.138.3

matrix-synapse

PyPI · All systems

Affected

  • introduced 1.139.0rc2, fixed 1.139.1 (ecosystem)

Fixed versions

1.139.1

Fix

  • Fixed version 1.139.1
    pip install --upgrade matrix-synapse==1.139.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences