{"id":"CVE-2021-21394","published":"2021-04-12T20:45:18Z","modified":"2024-08-03T18:09:16Z","title":"Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints","vendor":"matrix-org","product":"synapse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01538,"percentile":0.75503,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-w9fg-xffh-p362","tags":["x_refsource_CONFIRM"]},{"url":"https://pypi.org/project/matrix-synapse/","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/pull/9321","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/pull/9393","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":15.1},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":["< 1.28.0"]}],"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":["<1.28.0"],"patched":["1.28.0"],"from":["GHSA-w9fg-xffh-p362","PYSEC-2021-27"],"provenance":"source"}],"summary":{"text":"The flaw is missing input validation on several parameters of the third-party identifier confirmation endpoints in Synapse, the Python reference homeserver for the Matrix federated messaging ecosystem. An attacker who can reach those endpoints and hold a low-privilege account can send oversized input that drives excessive disk and memory consumption, causing denial of service through resource exhaustion, with no user interaction required and high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:20Z"},"euvd":{"id":"EUVD-2021-0130","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21333","published":"2021-03-26","fixed":"1.27.0","kev":false},{"cve":"CVE-2021-21392","published":"2021-04-12","fixed":"1.28.0","kev":false,"link":{"from":"CVE-2021-21392","to":"CVE-2021-21394","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.28.0rc1","toFixed":"1.28.0","daysApart":0}]}},{"cve":"CVE-2021-21393","published":"2021-04-12","fixed":"1.28.0","kev":false},{"cve":"CVE-2021-21394","published":"2021-04-12","fixed":"1.28.0","kev":false},{"cve":"CVE-2021-29471","published":"2021-05-11","fixed":"1.33.2","kev":false},{"cve":"CVE-2021-39163","published":"2021-08-31","fixed":"1.41.1","kev":false},{"cve":"CVE-2021-39164","published":"2021-08-31","fixed":"1.41.1","kev":false}],"package":"PyPI:matrix-synapse"}}