PYSEC-2020-236
Record from OSV · Published December 9, 2020
matrix-synapse is fixed in 3ce2f303f15f6ac3dc352298972dc6e04d9b7a8b and 1.23.1 (PyPI)
Matrix is an ecosystem for open federated Instant Messaging and VoIP. Synapse is a reference "homeserver" implementation of Matrix. A malicious or poorly-implemented homeserver can inject malformed events into a room by specifying a different room id in the path of a `/send_join`, `/send_leave`, `/invite` or `/exchange_third_party_invite` request. This can lead to a denial of service in which future events will not be correctly sent to other servers over federation. This affects any server which accepts federation requests from untrusted servers. The Matrix Synapse reference implementation before version 1.23.1 the implementation is vulnerable to this injection attack. Issue is fixed in version 1.23.1. As a workaround homeserver administrators could limit access to the federation API to trusted servers (for example via `federation_domain_whitelist`).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| matrix-synapse | PyPI | 3ce2f303f15f6ac3dc352298972dc6e04d9b7a8b, 1.23.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PyPI | matrix-synapse | 0, 0, 0.33.5 |
Timeline
- Dec 9, 2020 CVE Published
- Nov 8, 2023 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln PYSEC-2020-236
vulnetix vdb fixes PYSEC-2020-236
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/PYSEC-2020-236/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-hxmp-pqch-c8mm advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DBTIU3ZNBFWZ56V4X7JIAD33V5H2GOMC/ url
- https://github.com/matrix-org/synapse/pull/8776 fix
- https://github.com/matrix-org/synapse/commit/3ce2f303f15f6ac3dc352298972dc6e04d9b7a8b patch
- https://github.com/matrix-org/synapse/blob/develop/CHANGES.md#synapse-1231-2020-12-09 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QR4MMYZKX5N5GYGH4H5LBUUC5TLAFHI7/ url