Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-31152

MEDIUM 6.4EPSS 72%

Synapse vulnerable to denial of service (DoS) due to incorrect application of event authorization rules

Also known as GHSA-jhjh-776m-4765, PYSEC-2022-262

Mitigation

  • Upgrade matrix-synapse to one of 1.62.0rc1, 1.62.0 (or later in the same release line).

Who should check

  • Projects that depend on PyPI package matrix-synapse (< 1.62.0rc1)
  • Anyone running matrix-org synapse < 1.62.0

Vulnerability facts

Affected
matrix-synapse < 1.62.0rc1
Fixed in
1.62.0rc1, 1.62.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: High
EPSS
1.39% chance of exploitation in 30 days (percentile 72, 2026-11-26)
CWE
CWE-703
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI matrix-synapse< 1.62.0rc11.62.0rc1, 1.62.0osv
matrix-org synapse< 1.62.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-31152. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31152.md
Affected: matrix-synapse < 1.62.0rc1
Fixed in: 1.62.0rc1, 1.62.0

Steps:
1. Search this machine and project for matrix-synapse (PyPI), matrix-org synapse: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-31152 being exploited?

There is no confirmed exploitation: CVE-2022-31152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.39% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-31152?

Medium: CVSS 6.4 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2022-31152?

matrix-synapse < 1.62.0rc1.

Is there a fix for CVE-2022-31152?

Yes. Fixed in 1.62.0rc1, 1.62.0. Upgrade matrix-synapse to one of 1.62.0rc1, 1.62.0 (or later in the same release line).

How do I check if I'm affected by CVE-2022-31152?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors