# CVE-2021-21274: Denial of service attack via .well-known lookups

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.19%, higher than 82% of CVEs (2026-12-01)
- Published: 2021-02-26T17:25:16.000Z
- Modified: 2026-09-10T03:49:14.211Z
- Also known as: GHSA-2hwx-mjrm-v3g8, PYSEC-2021-132
- Weaknesses: CWE-400, CWE-770
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matrix-org synapse: >=0.99.0, < 1.25.0
- matrix-synapse (PyPI): from 0.99.0 before 1.25.0; before ff5c4da1289cb5e097902b3e55b771be342c29d6
- matrix synapse: from 0.99.0 before 1.25.0
- fedoraproject fedora: 34

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-2hwx-mjrm-v3g8> (advisory, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/releases/tag/v1.25.0> (third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/8950> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/commit/ff5c4da1289cb5e097902b3e55b771be342c29d6> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21274> (advisory)
- <https://github.com/matrix-org/synapse> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-132.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY> (web)

## Sources

- CVE List: [CVE-2021-21274](https://www.cve.org/CVERecord?id=CVE-2021-21274), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-2hwx-mjrm-v3g8](https://github.com/advisories/GHSA-2hwx-mjrm-v3g8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21274](https://nvd.nist.gov/vuln/detail/CVE-2021-21274), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-132](https://osv.dev/vulnerability/PYSEC-2021-132), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-21274 · Whole record: https://cve.day/CVE-2021-21274.json · Rebuilt by cve.day 2026-11-25T22:58:00.084Z
