{"id":"CVE-2022-31152","published":"2022-09-02T20:00:16Z","modified":"2025-04-23T17:32:15Z","title":"Synapse vulnerable to denial of service (DoS) due to incorrect application of event authorization rules","vendor":"matrix-org","product":"synapse","tier":"tail","description":{"text":"Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. The Matrix specification specifies a list of [event authorization rules](https://spec.matrix.org/v1.2/rooms/v9/#authorization-rules) which must be checked when determining if an event should be accepted into a room. In versions of Synapse up to and including version 1.61.0, some of these rules are not correctly applied. An attacker could craft events which would be accepted by Synapse but not a spec-conformant server, potentially causing divergence in the room state between servers. Administrators of homeservers with federation enabled are advised to upgrade to version 1.62.0 or higher. Federation can be disabled by setting [`federation_domain_whitelist`](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#federation_domain_whitelist) to an empty list (`[]`) as a workaround.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01238,"percentile":0.69839,"provenance":"source"},"cwes":[{"id":"CWE-703","name":"Improper Check or Handling of Exceptional Conditions"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-jhjh-776m-4765","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/synapse/pull/13087","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/pull/13088","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/releases/tag/v1.62.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":13.97},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":["< 1.62.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:01:29.840178Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":["<1.62.0rc1","<1.62.0"],"patched":["1.62.0rc1","1.62.0"],"from":["GHSA-jhjh-776m-4765","PYSEC-2022-262"],"provenance":"source"}],"summary":{"text":"The flaw is in Synapse, the open-source Matrix homeserver, where some of the event authorization rules defined by the Matrix specification are not correctly applied when deciding whether an event is accepted into a room. An attacker with network access and low-privilege authentication can craft events that Synapse accepts but a spec-conformant server rejects, which requires a high-complexity attack and can cause room state to diverge between servers and lead to denial of service, with federation enabled being the relevant configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:03Z"},"euvd":{"id":"EUVD-2022-0154","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41281","published":"2021-11-23","fixed":"1.47.1","kev":false},{"cve":"CVE-2022-41952","published":"2022-11-22","fixed":"1.53.0","kev":false},{"cve":"CVE-2022-31052","published":"2022-06-28","fixed":"1.61.1","kev":false,"link":{"from":"CVE-2022-31052","to":"CVE-2022-31152","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.61.1","toFixed":"1.62.0rc1","daysApart":66}]}},{"cve":"CVE-2022-31152","published":"2022-09-02","fixed":"1.62.0","kev":false},{"cve":"CVE-2022-39374","published":"2023-05-26","fixed":"1.68.0","kev":false,"link":{"from":"CVE-2022-31152","to":"CVE-2022-39374","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.62.0","toFixed":"1.68.0rc1","daysApart":266}]}},{"cve":"CVE-2022-39335","published":"2023-05-26","fixed":"1.69.0","kev":false},{"cve":"CVE-2023-32323","published":"2023-05-26","fixed":"1.74.0","kev":false}],"package":"PyPI:matrix-synapse"}}