Live threats

All CVEs / Matrix

CVE-2021-29471Matrix Synapse

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
May 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-331
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Synapse.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI matrix-synapse < 1.33.2 1.33.2 pip install "matrix-synapse>=1.33.2"
PyPI matrix-synapse < 1.33.2 1.33.2 pip install "matrix-synapse>=1.33.2"

Per OSV / GitHub Advisories (GHSA-x345-32rc-8h85, PYSEC-2021-135). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrixsynapse< 1.33.2
fedoraprojectfedora34

Official sources

References

Links published by the sources. Open them with care.