Bug 1211737 (CVE-2023-32323) - VUL-0: CVE-2023-32323: matrix-synapse: Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites
Summary: VUL-0: CVE-2023-32323: matrix-synapse: Synapse Outgoing federation to specifi...
Status: RESOLVED FIXED
Alias: CVE-2023-32323
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/367461/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-26 05:24 UTC by Gianluca Gabrielli
Modified: 2023-05-26 05:26 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2023-05-26 05:24:56 UTC
A malicious user on a Synapse homeserver X with permission to create certain state events can disable outbound federation from X to an arbitrary homeserver Y.

Synapse instances with federation disabled are not affected.

The Matrix protocol allows homeservers to provide an invite_room_state field on a room invite containing a summary of room state. In versions of Synapse up to and including v1.73.0, Synapse did not limit the size of invite_room_state, meaning that it was possible to create an arbitrarily large invite event.

An attacker with an account on a vulnerable Synapse homeserver X could exploit this by having X create an over-sized invite event in a room with a user from another homeserver Y. Once acknowledged by the invitee's homeserver, the invite event would be sent in a batch of events to Y. If the malicious invite is so large that the entire batch is rejected as too large, X's outgoing traffic to Y would become "stuck", meaning that messages and state events created by X would remain unseen by Y.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-32323
https://bugzilla.redhat.com/show_bug.cgi?id=2209958
Comment 1 Gianluca Gabrielli 2023-05-26 05:26:56 UTC
Fixed version >= v1.74.0.

SUSE:Factory/matrix-synapse ships version v1.77.0, so nothing to do here. Closing.