Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. matrix-synapse
  4. ›
  5. CVE-2022-39374

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

May 24, 2023 (updated September 30, 2024)

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.

Synapse homeservers are affected by this issue if and only if they are joined to rooms which members of untrusted homeservers are joined or invited to.

  • Synapse homeservers in rooms available over public federation are affected.
  • Synapse homeservers with federation disabled are not affected.
  • Synapse homeservers in a closed federation containing only trusted servers are not affected.
  • Synapse homeservers which are only joined to rooms with federation disabled[^1] are not affected.

References

  • github.com/advisories/GHSA-p9qp-c452-f9r7
  • github.com/matrix-org/synapse
  • github.com/matrix-org/synapse/commit/b73cbb82157d9666e8d667733afebc0d09ed858c
  • github.com/matrix-org/synapse/pull/13723
  • github.com/matrix-org/synapse/security/advisories/GHSA-p9qp-c452-f9r7
  • github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-66.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD
  • nvd.nist.gov/vuln/detail/CVE-2022-39374

Code Behaviors & Features

Detect and mitigate CVE-2022-39374 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.62.0 before 1.68.0rc1

Fixed versions

  • 1.68.0rc1

Solution

Upgrade to version 1.68.0rc1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/matrix-synapse/CVE-2022-39374.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:48 +0000.