{"id":"CVE-2025-61672","aliases":["CVE-2025-61672","GHSA-fh66-fcv5-jjfr","PYSEC-2026-1612"],"related":[],"kind":"vulnerability","state":"published","title":"Synapse: Invalid device keys degrade federation functionality","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nLack 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. \n\n### Patches\n\nPatched in Synapse 1.138.3, 1.138.4, 1.139.1, and 1.139.2.\n\nNote 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.\n\n### Workarounds\n\nThe vulnerability can only be exploited by users registered on the victim homeserver.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Synapse es una implementación de homeserver de Matrix de código abierto. La falta de validación para las claves de dispositivo en Synapse anterior a 1.138.3 y en Synapse 1.139.0 permite a un atacante registrado en el homeserver víctima degradar la funcionalidad de federación, rompiendo impredeciblemente la federación saliente a otros homeservers. El problema está parcheado en Synapse 1.138.3, 1.138.4, 1.139.1 y 1.139.2. Tenga en cuenta que aunque 1.138.3 y 1.139.1 solucionan la vulnerabilidad, introdujeron inadvertidamente una regresión no relacionada. Por esta razón, los mantenedores de Synapse recomiendan omitir estas versiones y actualizar directamente a 1.138.4 y 1.139.2.","source":"nvd"}],"published":"2025-10-08T14:55:06.378Z","modified":"2026-10-08T13:10:00.200Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-1287"],"affected":[{"ranges":[{"version":"< 1.138.3","status":"affected"},{"version":"= 1.139.0","status":"affected"}],"vendor":"element-hq","product":"synapse","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.138.3"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.139.0rc2","status":"affected","fixed":"1.139.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.138.3"},{"type":"ecosystem","introduced":"1.139.0rc2","status":"affected","fixed":"1.139.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"pysec"}],"references":[{"url":"https://github.com/element-hq/synapse/security/advisories/GHSA-fh66-fcv5-jjfr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/pull/17097","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/commit/26aaaf9e48fff80cf67a20c691c75d670034b3c1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/commit/7069636c2d6d1ef2022287addf3ed8b919ef2740","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/releases/tag/v1.138.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/releases/tag/v1.139.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61672","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/element-hq/synapse","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/element-hq/synapse/releases/tag/v1.138.4","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/element-hq/synapse/releases/tag/v1.139.2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/matrix-synapse","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-fh66-fcv5-jjfr","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-15T16:10:58.297Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-61672","url":"https://www.cve.org/CVERecord?id=CVE-2025-61672","licence":"CVE Terms of Use","modified":"2025-10-15T16:11:07.284Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fh66-fcv5-jjfr","url":"https://github.com/advisories/GHSA-fh66-fcv5-jjfr","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:22.342Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-61672","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61672","licence":"Public domain","modified":"2026-10-08T13:10:00.200Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1612","url":"https://osv.dev/vulnerability/PYSEC-2026-1612","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:57.337Z"}],"updatedAt":"2026-11-25T22:59:05.654Z","epss":{"score":0.00476,"percentile":0.42783,"date":"2026-12-01T12:00:22.000Z"}}