CVE-2020-26257
Denial of service attack via incorrect parameters to federation APIs
Description
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`).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 2.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 84.7% of all scored CVEs. Scores of 26 Nov 2026.
Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-400 Uncontrolled Resource Consumption
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| synapse |
affected < 1.23.1
|
Is my server affected?
Find the installed version of synapse and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i synapse
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-26257 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-26257RHEL, Rocky, Alma, Fedora
rpm -q synapse
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-26257Alpine
apk list --installed | grep -i synapseWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-26257
trivy image --scanners vuln IMAGE | grep CVE-2020-26257
Patchbrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- https://github.com/matrix-org/synapse/security/advisories/GHSA-hxmp-pqch-c8mm github.com
- FEDORA-2020-a2172c484d lists.fedoraproject.org · vendor advisory
- FEDORA-2020-eeb66c2ece lists.fedoraproject.org · vendor advisory
Other references
- https://github.com/matrix-org/synapse/pull/8776 github.com
- https://github.com/matrix-org/synapse/commit/3ce2f303f15f6ac3dc352298972dc6e04d9b7a8b github.com
- https://github.com/matrix-org/synapse/blob/develop/CHANGES.md#synapse-1231-2020-12-09 github.com
Source: the record CVE-2020-26257 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.