CVE-2021-29471
MEDIUM 5.3CVSS 3.1Denial of service attack via push rule patterns in matrix-synapse
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.
- Published
- 11 May 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-331CWE-400
- Also known as
- GHSA-x345-32rc-8h85PYSEC-2021-135
- Sources
- NVDJSONOSV GHSA-x345-32rc-8h85JSONOSV PYSEC-2021-135JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | synapsecpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:* |
< 1.33.2 | 1.33.2 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | PyPI | matrix-synapse | < 1.33.2 | 1.33.2 |
References
- https://github.com/matrix-org/synapse/commit/03318a766cac9f8b053db2214d9c332a977d226c · Patch, Third Party Advisory, WEB, FIX
- https://github.com/matrix-org/synapse/releases/tag/v1.33.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/matrix-org/synapse/security/advisories/GHSA-x345-32rc-8h85 · Patch, Third Party Advisory, WEB, ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/
- https://nvd.nist.gov/vuln/detail/CVE-2021-29471 · ADVISORY
- https://github.com/matrix-org/synapse · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-135.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 11 May 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 May 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2021)