First published: Wed 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 [`federation_domain_whitelist`](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#federation_domain_whitelist) 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](https://spec.matrix.org/v1.4/client-server-api/#mroomcreate). ### For more information If you have any questions or comments about this advisory, e-mail us at [security@matrix.org](mailto:security@matrix.org).
Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Matrix Synapse | >=1.62.0<1.68.0 | |
pip/matrix-synapse | >=1.62.0<1.68.0rc1 | 1.68.0rc1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
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.
CVE-2022-39374 allows a malicious homeserver to cause all further messages and state changes to be accepted by Synapse.
The severity of CVE-2022-39374 is medium, with a CVSS score of 6.5.
Versions of matrix-synapse between 1.62.0 and 1.68.0 are affected by CVE-2022-39374.
To fix CVE-2022-39374, you should update matrix-synapse to version 1.68.0 or higher.