CVE-2022-31152: matrix-org synapse
Vulnerability summary
CVE-2022-31152 is a high (CVSS 7.5) vulnerability in matrix-org synapse. EPSS estimates a 1.18% chance of exploitation in the next 30 days, higher than 67.1% of scored vulnerabilities.
Timeline
- 02-09-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HDiffers
- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.18%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
0.00 pp
From 1.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-703Improper Check or Handling of Exceptional ConditionsThe product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product.
- CWE-755Improper Handling of Exceptional ConditionsThe product does not handle or incorrectly handles an exceptional condition.
Affected systems
Debian1 product
- matrix-synapse< 1.63.0-1
Matrix1 product
- synapse< 1.62.0
Matrix-org1 product
- synapse< 1.62.0
PyPI1 product
- matrix-synapse< 1.62.0rc1 | < 1.62.0
Ubuntu1 product
- matrix-synapseAll versions (No fix recorded)
5 vendors · 5 products
References
12 links- github.com/matrix-org/synapse/security/advisories/GHSA-jhjh-776m-4765X Refsource CONFIRMWEBAdvisoryREPORTIssue TrackingMitigationThird Party Advisory
- github.com/matrix-org/synapse/pull/13087X Refsource MISCWEBREPORTIssue TrackingPatchThird Party Advisory
- github.com/matrix-org/synapse/pull/13088X Refsource MISCWEBREPORTIssue TrackingPatchThird Party Advisory
- github.com/matrix-org/synapse/releases/tag/v1.62.0X Refsource MISCWEBREPORTRelease NotesThird Party Advisory