{"id":"CVE-2023-32323","aliases":["CVE-2023-32323","GHSA-f3wc-3vxv-xmvr","PYSEC-2023-67"],"related":[],"kind":"vulnerability","state":"published","title":"Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites","summary":"Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. A malicious user on a Synapse homeserver X with permission to create certain state events can disable outbound federation from X to an arbitrary homeserver Y. Synapse instances with federation disabled are not affected. In versions of Synapse up to and including 1.73, Synapse did not limit the size of `invite_room_state`, meaning that it was possible to create an arbitrarily large invite event. Synapse 1.74 refuses to create oversized `invite_room_state` fields. Server operators should upgrade to Synapse 1.74 or newer urgently.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. A malicious user on a Synapse homeserver X with permission to create certain state events can disable outbound federation from X to an arbitrary homeserver Y. Synapse instances with federation disabled are not affected. In versions of Synapse up to and including 1.73, Synapse did not limit the size of `invite_room_state`, meaning that it was possible to create an arbitrarily large invite event. Synapse 1.74 refuses to create oversized `invite_room_state` fields. Server operators should upgrade to Synapse 1.74 or newer urgently.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA malicious user on a Synapse homeserver X with permission to create certain state events can disable outbound federation from X to an arbitrary homeserver Y.\n\nSynapse instances with federation disabled are not affected.\n\n#### Details\n\nThe Matrix protocol allows homeservers to provide an `invite_room_state` field on a [room invite](https://spec.matrix.org/v1.5/client-server-api/#mroommember) containing a [summary of room state](https://spec.matrix.org/v1.5/client-server-api/#stripped-state).  In versions of Synapse up to and including v1.73.0, Synapse did not limit the size of `invite_room_state`, meaning that it was possible to create an arbitrarily large invite event.\n\nAn attacker with an account on a vulnerable Synapse homeserver X could exploit this by having X create an over-sized invite event in a room with a user from another homeserver Y. Once acknowledged by the invitee's homeserver, the invite event would be sent in a batch of events to Y. If the malicious invite is so large that the entire batch is rejected as too large, X's outgoing traffic to Y would become \"stuck\", meaning that messages and state events created by X would remain unseen by Y.\n\n### Patches\n\nSynapse 1.74 refuses to create oversized `invite_room_state` fields. Server operators should upgrade to Synapse 1.74 or newer urgently.\n\n### Workarounds\n\nThere are no robust workarounds.\n\nThis attack needs an account on Synapse homeserver X to deny federation from X to another homeserver Y. As a partial mitigation, Synapse operators can disable open registration to limit the ability of attackers to create new accounts on homeserver X.\n\nIf homeserver X has been attacked in this way, restarting it will resume outgoing federation by entering \"catchup mode\". For catchup mode to ignore the oversized invites, every attacked room must have a correctly-sized event sent by X which is newer than any oversized invite. This is difficult to arrange, and does not prevent the attacker from repeating their attack.\n\n### References\n\n- https://github.com/matrix-org/synapse/issues/14492 was caused by this issue.\n- https://github.com/matrix-org/synapse/issues/14642  includes the patch described above.\n\n### For more information\n\nIf you have any questions or comments about this advisory, e-mail us at [security@matrix.org](mailto:security@matrix.org).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Synapse es un servidor doméstico Matrix de código abierto escrito y mantenido por la Fundación Matrix.org. Un usuario malicioso en un servidor doméstico X de Synapse con permiso para crear ciertos eventos de estado puede deshabilitar la federación saliente de X a un servidor doméstico Y arbitrario. Las instancias de Synapse con la federación deshabilitada no se ven afectadas. En las versiones de Synapse hasta la 1.73 inclusive, Synapse no limitaba el tamaño de `invite_room_state`, lo que significa que era posible crear un evento de invitación arbitrariamente grande. Synapse 1.74 se niega a crear campos `invite_room_state` de gran tamaño. Los operadores de servidores deben actualizar urgentemente a Synapse 1.74 o posterior.","source":"nvd"}],"published":"2023-05-24T17:28:26.000Z","modified":"2026-06-17T05:58:34.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"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:N/VA:N/SC:N/SI:N/SA:L","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"< 1.74.0","status":"affected"}],"vendor":"matrix-org","product":"synapse","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.74.0"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.74.0"}],"vendor":"matrix","product":"synapse","cpe":"cpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.74.0"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"pysec"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-f3wc-3vxv-xmvr","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/matrix-org/synapse/issues/14492","tags":["exploit","issue-tracking","report","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/matrix-org/synapse/pull/14642","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32323","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/synapse","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-67.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-01-14T20:00:17.125Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-32323","url":"https://www.cve.org/CVERecord?id=CVE-2023-32323","licence":"CVE Terms of Use","modified":"2025-02-13T16:50:32.310Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3wc-3vxv-xmvr","url":"https://github.com/advisories/GHSA-f3wc-3vxv-xmvr","licence":"CC-BY-4.0","modified":"2025-02-13T19:13:53.959Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-32323","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32323","licence":"Public domain","modified":"2026-06-17T05:58:34.297Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-67","url":"https://osv.dev/vulnerability/PYSEC-2023-67","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:34.841Z"}],"updatedAt":"2026-11-25T22:58:24.390Z","epss":{"score":0.00981,"percentile":0.63264,"date":"2026-12-01T12:00:22.000Z"}}