Vulnerability · Published May 26, 2023 · Assigned by GitHub_M
CVE-2023-32323Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites
Medium 5.0
In plain English
A medium-severity improper input validation in synapse from matrix-org. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. 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. In versions of Synapse up to and including 1.73, Synapse did not limit the size of `invite_room_state`, meaning that it was possible to create an arbitrarily large invite event. Synapse 1.74 refuses to create oversized `invite_room_state` fields. Server operators should upgrade to Synapse 1.74 or newer urgently.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | synapse | 1.74.0-r0 | ALPINE-CVE-2023-32323 |
| Alpine:v3.21 | synapse | 1.74.0-r0 | ALPINE-CVE-2023-32323 |
| Alpine:v3.22 | synapse | 1.74.0-r0 | ALPINE-CVE-2023-32323 |
| Alpine:v3.23 | synapse | 1.74.0-r0 | ALPINE-CVE-2023-32323 |
| Alpine:v3.24 | synapse | 1.74.0-r0 | ALPINE-CVE-2023-32323 |
| Debian:14 | matrix-synapse | 1.74.0-1 | DEBIAN-CVE-2023-32323 |
| PyPI | matrix-synapse | 1.74.0 | GHSA-f3wc-3vxv-xmvr |
| PyPI | matrix-synapse | 1.74.0 | PYSEC-2023-67 |
| Ubuntu:22.04:LTS | matrix-synapse | no fix listed | UBUNTU-CVE-2023-32323 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.74.0 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-f3wc-3vxv-xmvr x_refsource_CONFIRM
- https://github.com/matrix-org/synapse/issues/14492 x_refsource_MISC
- https://github.com/matrix-org/synapse/pull/14642 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD/