Vulnerability · Published May 11, 2021 · Assigned by GitHub_M
CVE-2021-29471Denial of service in Matrix Synapse
Low 3.7
In plain English
A low-severity uncontrolled resource consumption in synapse from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | synapse | 1.33.2-r0 | ALPINE-CVE-2021-29471 |
| Alpine:v3.21 | synapse | 1.33.2-r0 | ALPINE-CVE-2021-29471 |
| Alpine:v3.22 | synapse | 1.33.2-r0 | ALPINE-CVE-2021-29471 |
| Alpine:v3.23 | synapse | 1.33.2-r0 | ALPINE-CVE-2021-29471 |
| Alpine:v3.24 | synapse | 1.33.2-r0 | ALPINE-CVE-2021-29471 |
| Debian:14 | matrix-synapse | 1.33.2-1 | DEBIAN-CVE-2021-29471 |
| PyPI | matrix-synapse | 1.33.2 | GHSA-x345-32rc-8h85 |
| PyPI | matrix-synapse | 1.33.2 | PYSEC-2021-135 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.33.2 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-x345-32rc-8h85 x_refsource_CONFIRM
- https://github.com/matrix-org/synapse/commit/03318a766cac9f8b053db2214d9c332a977d226c x_refsource_MISC
- https://github.com/matrix-org/synapse/releases/tag/v1.33.2 x_refsource_MISC
- FEDORA-2021-a627cfd31e vendor-advisory, x_refsource_FEDORA