CVE-2020-26257
Denial of service attack via incorrect parameters to federation APIs
Reported by github_m · 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 |
| synapse | Alpine | 1.24.0-r0 |
| matrix-synapse | Arch Linux | 1.24.0-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.23.1 |
| PyPI | matrix-synapse | 0 |
| alpine | synapse | 0 |
| arch | matrix-synapse | 0 |
| matrix-org | synapse | 0 |
Timeline
- Dec 9, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 4, 2024 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-26257
vulnetix vdb fixes CVE-2020-26257
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/CVE-2020-26257/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2020-a2172c484d vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-eeb66c2ece vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2020-26257 advisory
- https://github.com/advisories/GHSA-hxmp-pqch-c8mm advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2020-236.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DBTIU3ZNBFWZ56V4X7JIAD33V5H2GOMC url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QR4MMYZKX5N5GYGH4H5LBUUC5TLAFHI7 url