# CVE-2021-29471: Denial of service in Matrix Synapse

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/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): 1.65%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-05-11T15:05:12.000Z
- Modified: 2026-07-08T06:27:40.962Z
- Also known as: GHSA-x345-32rc-8h85, PYSEC-2021-135
- Weaknesses: CWE-331, CWE-400
- 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.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.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.33.2
- matrix-synapse (PyPI): before 1.33.2; before 03318a766cac9f8b053db2214d9c332a977d226c
- matrix synapse: before 1.33.2
- fedoraproject fedora: 34

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-x345-32rc-8h85> (advisory, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/commit/03318a766cac9f8b053db2214d9c332a977d226c> (fix, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/releases/tag/v1.33.2> (release-notes, 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-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)

## Sources

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

---

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