# CVE-2025-61672: PYSEC-2026-1612 - Synapse's invalid device keys degrade federation functionality

Source: https://junglewise.ai/threats/cve-2025-61672-synapse-s-invalid-device-keys-degrade-federation-functionality  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-08  
License: CC BY 4.0 with a link back

CVE-2025-61672 · Severity: medium · CVSS 4 · Published 2025-10-08

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.

Technologies: [matrix-synapse (PyPI)](https://junglewise.ai/threats/technologies/matrix-synapse). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-61672 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-61672 being exploited in the wild.

**How severe is CVE-2025-61672?** Medium severity, with a CVSS score of 4, published 8 October 2025.

**Which products and versions are affected?** matrix-synapse (PyPI) ECOSYSTEM:introduced=0,fixed=1.138.3, ECOSYSTEM:introduced=0,fixed=1.138.3,introduced=1.139.0rc2,fixed=1.139.1.

**Is there a fix for CVE-2025-61672?** Yes. matrix-synapse (PyPI): upgrade to 1.138.3, 1.139.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-61672?** Check whether you run matrix-synapse (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- matrix-synapse (PyPI): upgrade to 1.138.3, 1.139.1 or later

  ```sh
  pip install "matrix-synapse>=1.139.1"
  ```


## Affected products

- matrix-synapse (PyPI) ECOSYSTEM:introduced=0,fixed=1.138.3, ECOSYSTEM:introduced=0,fixed=1.138.3,introduced=1.139.0rc2,fixed=1.139.1

## Identifiers

- CVE-2025-61672
- GHSA-fh66-fcv5-jjfr
- PYSEC-2026-1612

## Related threats

- [PYSEC-2026-2620 - matrix-sydent and matrix-synapse Use Cryptographically Weak PRNG](https://junglewise.ai/threats/cve-2019-11842-matrix-sydent-and-matrix-synapse-use-cryptographically-weak-prng)
- [PYSEC-2026-1614 - Synapse vulnerable to federation denial of service via malformed events](https://junglewise.ai/threats/cve-2025-30355-synapse-vulnerable-to-federation-denial-of-service-via-malformed)
- [PYSEC-2026-1610 - Synapse Matrix has a partial room state leak via Sliding Sync](https://junglewise.ai/threats/cve-2024-53867-synapse-matrix-has-a-partial-room-state-leak-via-sliding-sync)
- [Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders](https://junglewise.ai/threats/cve-2024-53863-synapse-can-be-forced-to-thumbnail-unexpected-file-formats)
- [PYSEC-2026-1611 - Synapse allows a a malformed invite to break the invitee's `/sync`](https://junglewise.ai/threats/cve-2024-52815-synapse-allows-a-a-malformed-invite-to-break-the-invitee-s-sync)
