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

Published May 24, 2023
·
Updated

Impact 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.

Patches Administrators of homeservers with federation enabled are advised to upgrade to 1.68.0 or higher.

Workarounds Federation can be disabled by setting federationdomainwhitelist to an empty list ([]). from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0

References - https://github.com/matrix-org/synapse/pull/13723

[^1]: See m.federate in the m.room.create definition.

For more information

If you have any questions or comments about this advisory, e-mail us at security@matrix.org.

Other sources

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 disabled1 are not affected.

Red Hat

Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. 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. This issue has been patched in version 1.68.0

Affected Software

4 affected componentsFixes available
matrix synapse>=1.62.0<1.68.0
pip/matrix-synapse>=1.62.0<1.68.0rc1
1.68.0rc1
debian/matrix-synapse
1.121.0-6
redhat/matrix-synapse<1.68.0
1.68.0

Event History

May 24, 2023
Advisory Published
via GitHub·05:21 PM
May 25, 2023
Data Sourced
via Red Hat·10:27 AM
DescriptionSeverityAffected Software
May 26, 2023
CVE Published
via MITRE·01:44 PM
Data Sourced
via MITRE·01:44 PM
DescriptionSeverityWeakness
Apr 23, 2025
Data Sourced
via Ubuntu·04:23 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·04:24 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-39374?

CVE-2022-39374 is a vulnerability in Synapse, an open-source Matrix homeserver, that allows a malicious homeserver to trick Synapse into accepting previously rejected events into its view of the current state of a room.

2

How does CVE-2022-39374 impact Synapse?

CVE-2022-39374 allows a malicious homeserver to cause all further messages and state changes to be accepted by Synapse.

3

What is the severity of CVE-2022-39374?

The severity of CVE-2022-39374 is medium, with a CVSS score of 6.5.

4

What software versions are affected by CVE-2022-39374?

Versions of matrix-synapse between 1.62.0 and 1.68.0 are affected by CVE-2022-39374.

5

How can I fix CVE-2022-39374?

To fix CVE-2022-39374, you should update matrix-synapse to version 1.68.0 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203