CVE-2022-31152
Python vulnerability analysis and mitigation

Overview

CVE-2022-31152 is a security vulnerability affecting Matrix Synapse, an open-source Matrix homeserver, in versions prior to 1.62.0. The vulnerability relates to incorrect implementation of Matrix event authorization rules, which could allow attackers to craft events that would be accepted by Synapse but rejected by spec-conformant servers (Matrix Advisory).

Technical details

The vulnerability stems from inconsistencies in the event authentication code where some Matrix specification event authorization rules were not correctly applied. This implementation flaw could lead to divergence in room state between servers, as events that should be rejected according to the Matrix specification were being accepted by affected Synapse instances (Matrix Release).

Impact

The vulnerability could potentially cause divergence in room state between servers, affecting the consistency and reliability of the Matrix federation. This could lead to denial of service conditions and inconsistent room states across different Matrix homeservers (Matrix Advisory).

Mitigation and workarounds

The vulnerability was fixed in Synapse version 1.62.0. Administrators of homeservers with federation enabled are advised to upgrade to v1.62.0 or higher. As a workaround, federation can be disabled by setting federation_domain_whitelist to an empty list (Matrix Release, Matrix Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • fence-agents-intelmodular
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management