CVE-2022-31152 json
Synapse vulnerable to denial of service (DoS) due to incorrect application of event authorization rules
published 2022-08-31 4 y ago modified 2026-06-17 4 mo ago also GHSA-jhjh-776m-4765 , PYSEC-2022-262 , EUVD-2022-0154
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi matrix-synapse 1.62.0, 1.62.0rc1
- matrix synapse 1.62.0
- github.com/matrix-org/synapse@d4b1c0d commit
- github.com/matrix-org/synapse@e16ea87 commit
- github.com/matrix-org/synapse#13087 pull request
- github.com/matrix-org/synapse#13088 pull request
- github.com/matrix-org/synapse/releases/tag/v1.62.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31152 updated
synapse: Denial of service due to incorrect application of event authorization rules
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.20% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | matrix-synapse | <1.62.0rc1 <1.62.0 |
1.62.0rc1 1.62.0 |
Affected products
- matrix-org synapse
Classification
References
-
github.com
/matrix-org/synapse/pull/13087
web, issue-tracking, patch, third-party-advisory
-
github.com
/matrix-org/synapse/pull/13088
web, issue-tracking, patch, third-party-advisory
-
github.com
/matrix-org/synapse/commit/d4b1c0d800eaa83c4d56a9cf17881ad362b9194b
web
-
github.com
/matrix-org/synapse/commit/e16ea87d0f8c4c30cad36f85488eb1f647e640b0
web
-
github.com
/matrix-org/synapse/security/advisories/GHSA-jhjh-776m-4765
web, issue-tracking, mitigation, third-party-advisory, advisory
-
github.com
/matrix-org/synapse/releases/tag/v1.62.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31152
advisory
-
github.com
/matrix-org/synapse
package
-
github.com
/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2022-262.yaml
web
Sources
- CVE List CVE-2022-31152
- GitHub Advisory GHSA-jhjh-776m-4765
- NVD CVE-2022-31152
- OSV PYSEC-2022-262
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.