CVE-2025-61672: Synapse's invalid device keys degrade federation functionality
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.
Published Oct 8, 2025
Affected packages
matrix-synapse
- Ecosystem
- PyPI
- Affected
- < 1.138.3
- Fixed in
- 1.138.3
- Check
pip show matrix-synapse
matrix-synapse
- Ecosystem
- PyPI
- Affected
- >= 1.139.0rc2, < 1.139.1
- Fixed in
- 1.139.1
- Check
pip show matrix-synapse
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to dkasak.
References
- https://github.com/element-hq/synapse/security/advisories/GHSA-fh66-fcv5-jjfr
- https://nvd.nist.gov/vuln/detail/CVE-2025-61672
- https://github.com/element-hq/synapse/pull/17097
- https://github.com/element-hq/synapse/commit/26aaaf9e48fff80cf67a20c691c75d670034b3c1
- https://github.com/element-hq/synapse/commit/7069636c2d6d1ef2022287addf3ed8b919ef2740
- https://github.com/element-hq/synapse/releases/tag/v1.138.3
- https://github.com/element-hq/synapse/releases/tag/v1.138.4
- https://github.com/element-hq/synapse/releases/tag/v1.139.1
- https://github.com/element-hq/synapse/releases/tag/v1.139.2
- https://github.com/advisories/GHSA-fh66-fcv5-jjfr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-45076
Synapse pagination Denial of Service
medium6.9May 14, 2026CVE-2026-45078
Synapse CPU starvation (Denial of Service)
high5.5May 14, 2026CVE-2025-30355
Synapse vulnerable to federation denial of service via malformed events
high7.1Mar 27, 2025CVE-2024-37302
Synapse denial of service through media disk space consumption
high7.5Dec 3, 2024CVE-2024-37303
Synapse's unauthenticated writes to the media repository allow planting of problematic content
medium5.3Dec 3, 2024CVE-2024-52805
Synapse allows unsupported content types to lead to memory exhaustion
high8.2Dec 3, 2024
