{"id":"CVE-2021-29471","published":"2021-05-11T15:05:12Z","modified":"2024-08-03T22:11:05Z","title":"Denial of service in Matrix Synapse","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.33.2 \"Push rules\" can specify conditions under which they will match, including `event_match`, which matches event content against a pattern including wildcards. Certain patterns can cause very poor performance in the matching engine, leading to a denial-of-service when processing moderate length events. The issue is patched in version 1.33.2. A potential workaround might be to prevent users from making custom push rules, by blocking such requests at a reverse-proxy.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01647,"percentile":0.77066,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-x345-32rc-8h85","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/synapse/commit/03318a766cac9f8b053db2214d9c332a977d226c","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/releases/tag/v1.33.2","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.0,"factors":[{"name":"EPSS percentile","points":15.41},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":["< 1.33.2"]}],"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":["<1.33.2"],"patched":["1.33.2"],"from":["GHSA-x345-32rc-8h85","PYSEC-2021-135"],"provenance":"source"}],"summary":{"text":"The flaw is in the event push-rule matching engine of the Synapse Matrix reference homeserver (the matrix-synapse Python package), where event_match conditions containing certain wildcard patterns cause very poor matching performance. An attacker with network access and no authentication can trigger a denial of service by creating custom push rules that use such patterns, which only becomes significant when processing moderate-length events, and the issue is reported as affecting Synapse before version 1.33.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:54:52Z"},"euvd":{"id":"EUVD-2021-0127","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21392","published":"2021-04-12","fixed":"1.28.0","kev":false,"link":{"from":"CVE-2021-21392","to":"CVE-2021-29471","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.28.0","toFixed":"1.33.2","daysApart":29}]}},{"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,"link":{"from":"CVE-2021-29471","to":"CVE-2021-39163","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.33.2","toFixed":"1.41.1","daysApart":112}]}},{"cve":"CVE-2021-39164","published":"2021-08-31","fixed":"1.41.1","kev":false,"link":{"from":"CVE-2021-29471","to":"CVE-2021-39164","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.33.2","toFixed":"1.41.1","daysApart":112}]}},{"cve":"CVE-2021-41281","published":"2021-11-23","fixed":"1.47.1","kev":false}],"package":"PyPI:matrix-synapse"}}