{"id":"CVE-2022-39374","published":"2023-05-26T13:44:44Z","modified":"2025-02-13T16:33:00Z","title":"Synapse Denial of service due to incorrect application of event authorization rules during state resolution","vendor":"matrix-org","product":"synapse","tier":"tail","description":{"text":"Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00941,"percentile":0.61838,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-p9qp-c452-f9r7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/synapse/pull/13723","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD/","tags":[]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.37},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":[">= 1.62.0, < 1.68.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-15T15:33:57.407441Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":[">=1.62.0, <1.68.0rc1",">=1.62.0, <1.68.0"],"patched":["1.68.0rc1","1.68.0"],"from":["GHSA-p9qp-c452-f9r7","PYSEC-2023-66"],"provenance":"source"}],"summary":{"text":"The flaw is in Synapse, the open-source Matrix homeserver, and lies in its state resolution handling: it incorrectly applies event authorization rules, causing it to accept previously rejected events into its view of a room's current state. An attacker operating a malicious homeserver that is joined to the same room as a vulnerable Synapse instance can exploit this to make that instance reject all further messages and state changes sent in the room from the vulnerable homeserver, requiring network access and low-privilege authentication to the room with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:41Z"},"euvd":{"id":"EUVD-2023-0138","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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},{"cve":"CVE-2022-31152","published":"2022-09-02","fixed":"1.62.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-39374","published":"2023-05-26","fixed":"1.68.0","kev":false},{"cve":"CVE-2022-39335","published":"2023-05-26","fixed":"1.69.0","kev":false,"link":{"from":"CVE-2022-39374","to":"CVE-2022-39335","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.68.0","toFixed":"1.69.0","daysApart":0}]}},{"cve":"CVE-2023-32323","published":"2023-05-26","fixed":"1.74.0","kev":false},{"cve":"CVE-2023-32682","published":"2023-06-06","fixed":"1.85.0","kev":false}],"package":"PyPI:matrix-synapse"}}