Vulnerabilities · 2020 · Matrix
CVE-2020-26257
Matrix Synapse vulnerability
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`).
Affected products
Synapse, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matrix Synapse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/matrix-org/synapse/commit/3ce2f303f15f6ac3dc352298972dc6e04d9b7a8b · Patch
- github.com/matrix-org/synapse/pull/8776 · Patch
- github.com/matrix-org/synapse/blob/develop/CHANGES.md#synapse-1231-2020-12-09 · Third Party Advisory
- github.com/matrix-org/synapse/security/advisories/GHSA-hxmp-pqch-c8mm · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q
- nvd.nist.gov/vuln/detail/CVE-2020-26257
- github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2020-236.yaml
- nvd.nist.gov/vuln/detail/CVE-2020-26257
- cve.org/CVERecord?id=CVE-2020-26257
More vulnerabilities in Matrix products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.