# CVE-2021-21394: Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.54%, higher than 75% of CVEs (2026-12-01)
- Published: 2021-04-12T20:45:18.000Z
- Modified: 2026-07-08T06:30:03.309Z
- Also known as: GHSA-w9fg-xffh-p362, PYSEC-2021-27
- Weaknesses: CWE-20
- 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.28.0 Synapse is missing input validation of some parameters on the endpoints used to confirm third-party identifiers could cause excessive use of disk space and memory leading to resource exhaustion. Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them. Refer to referenced GitHub security advisory for additional details including workarounds.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.28.0
- matrix-synapse (PyPI): before 1.28.0
- matrix synapse: from >0.17.0 before 1.28.0
- fedoraproject fedora: 34

## Every score

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

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-w9fg-xffh-p362> (advisory, patch, third-party-advisory, web)
- <https://pypi.org/project/matrix-synapse/> (package, product, third-party-advisory)
- <https://github.com/matrix-org/synapse/pull/9321> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/9393> (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-21394> (advisory)
- <https://github.com/matrix-org/synapse> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-27.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY> (web)
- <https://pypi.org/project/matrix-synapse> (web)

## Sources

- CVE List: [CVE-2021-21394](https://www.cve.org/CVERecord?id=CVE-2021-21394), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-w9fg-xffh-p362](https://github.com/advisories/GHSA-w9fg-xffh-p362), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21394](https://nvd.nist.gov/vuln/detail/CVE-2021-21394), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-27](https://osv.dev/vulnerability/PYSEC-2021-27), CC-BY-4.0, modified 2023-11-08

---

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