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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-05-11 · Modified: 2024-08-03
- Aliases: GHSA-x345-32rc-8h85, PYSEC-2021-135, UBUNTU-CVE-2021-29471, DEBIAN-CVE-2021-29471, ALPINE-CVE-2021-29471
- Record: https://cvemate.com/vulnerability/CVE-2021-29471 · JSON: https://cvemate.com/vulnerability/CVE-2021-29471/json

## 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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 1.647%, percentile 77.301%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine synapse (Alpine Linux): \< 1.34.0-r0 \| \< 1.33.2-r0
- debian matrix-synapse (Debian): \< 1.33.2-1
- ubuntu matrix-synapse (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 34
- matrix-org synapse: \< 1.33.2
- matrix synapse: \< 1.33.2
- PyPI matrix-synapse (PyPI): \< 03318a766cac9f8b053db2214d9c332a977d226c \| \< 1.33.2

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-x345-32rc-8h85>
- <https://github.com/matrix-org/synapse/commit/03318a766cac9f8b053db2214d9c332a977d226c>
- <https://github.com/matrix-org/synapse/releases/tag/v1.33.2>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29471>
- <https://github.com/matrix-org/synapse>
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-135.yaml>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY>
- <https://ubuntu.com/security/CVE-2021-29471>
- <https://www.cve.org/CVERecord?id=CVE-2021-29471>
- <https://security-tracker.debian.org/tracker/CVE-2021-29471>
- <https://security.alpinelinux.org/vuln/CVE-2021-29471>

---

Data as of 2026-12-05T06:26:33.001Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
