CVE-2021-21274Matrix Synapse
Medium 6.5 No auth needed
Follow: this CVE · Matrix · Matrix Synapse We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- Feb 26, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.25.0, a malicious homeserver could redirect requests to their .well-known file to a large file. This can lead to a denial of service attack where homeservers will consume significantly more resources when requesting the .well-known file of a malicious homeserver. This affects any server which accepts federation requests from untrusted servers. Issue is resolved in version 1.25.0. As a workaround the `federation_domain_whitelist` setting can be used to restrict the homeservers communicated with over federation.
What to do
- Apply the vendor's security update for Synapse.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | matrix-synapse |
≥ 0.99.0 < 1.25.0 |
1.25.0 |
pip install "matrix-synapse>=1.25.0" |
| PyPI | matrix-synapse |
≥ 0.99.0 < 1.25.0 |
1.25.0 |
pip install "matrix-synapse>=1.25.0" |
Per OSV / GitHub Advisories (GHSA-2hwx-mjrm-v3g8, PYSEC-2021-132). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matrix | synapse | ≥ 0.99.0 < 1.25.0 |
| fedoraproject | fedora | 34 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org