CVE-2025-61672Synapse: Invalid device keys degrade federation functionality
Synapse is an open source Matrix homeserver implementation. 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. The issue is 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, the maintainers of Synapse recommend skipping these releases and upgrading straight to 1.138.4 and 1.139.2.
What to do
Fixed builds are available from Alpine, PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | matrix-synapse | Under investigation | UBUNTU-CVE-2025-61672 | |
| Ubuntu 22.04 | matrix-synapse | Fix pending | UBUNTU-CVE-2025-61672 | |
| Ubuntu 20.04 | matrix-synapse | Fix pending | UBUNTU-CVE-2025-61672 | |
| Ubuntu 18.04 | matrix-synapse | Fix pending | UBUNTU-CVE-2025-61672 | |
| Alpine Linux 3.24 | synapse | Fixed | 1.139.2-r0 | ALPINE-CVE-2025-61672 |
| Alpine Linux 3.23 | synapse | Fixed | 1.139.2-r0 | ALPINE-CVE-2025-61672 |
| Alpine Linux 3.22 | synapse | Fixed | 1.139.2-r0 | ALPINE-CVE-2025-61672 |
| PyPI library | matrix-synapse | Fixed | 1.138.3 | PYSEC-2026-1612 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- element-hq synapse: affected: < 1.138.3, = 1.139.0
References
- https://github.com/element-hq/synapse/security/advisories/GHSA-fh66-fcv5-jjfr
- 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.139.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.