CVE-2021-29471
Denial of service attack via push rule patterns in matrix-synapse
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.
How to fix CVE-2021-29471
To remediate CVE-2021-29471, upgrade the affected package to a fixed version below.
- —upgrade to 1.33.2-1 or later
- —upgrade to 1.33.2 or later
- —upgrade to 03318a766cac9f8b053db2214d9c332a977d226c or later
Is CVE-2021-29471 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 1.33.2-1
- from 0, < 1.33.2
- from 0, < 03318a766cac9f8b053db2214d9c332a977d226c | from 0, < 1.33.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | LOW3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |