CVE-2021-21393
JSON

5.3medium

Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.60% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jrh7-mhhx-6h88PYSEC-2021-26

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.28.0 Synapse is missing input validation of some parameters on the endpoints used to confirm third-party identifiers could cause excessive use of disk space and memory leading to resource exhaustion. Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them. Refer to referenced GitHub security advisory for additional details including workarounds.

Affected

Product or packageVersionsReported by
matrix-org synapse< 1.28.0CVE List
matrix-synapse (PyPI)before 1.28.0GitHub Advisory Database, PyPA Advisory Database
matrix synapsefrom >0.24.0 before 1.28.0NVD
fedoraproject fedora34NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.28.0 Synapse is missing input validation of some parameters on the endpoints used to confirm third-party identifiers could cause excessive use of disk space and memory leading to resource exhaustion. Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them. Refer to referenced GitHub security advisory for additional details including workarounds.

GitHub Advisory Database
Impact

Missing input validation of some parameters on the groups (also known as communities) endpoints could cause excessive use of disk space and memory leading to resource exhaustion. Additionally clients may have issues rendering large fields.

Patches

This issue is fixed by #9321 and #9393.

Workarounds

The groups feature can be disabled (by setting enable_group_creation to False) to mitigate this issue. Note that it is disabled by default.

Other information

Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them.

NVD (es)

Synapse es un servidor doméstico de referencia de Matrix escrito en python (paquete pypi matrix-synapse).&#xa0;Matrix es un ecosistema para VoIP y mensajería instantánea federada abierta.&#xa0;En Synapse versiones anteriores a 1.28.0. Synapse presenta una falta de comprobación de entrada de algunos parámetros en los endpoints usados para confirmar que los identificadores de terceros podrían causar un uso excesivo del espacio en disco y la memoria conllevando a un agotamiento de los recursos.&#xa0;Note que la funcionalidad de grupos no forma parte de la especificación de Matrix y que las longitudes máximas elegidas son arbitrarias.&#xa0;No todos los clientes pueden acatarlos.&#xa0;Consulte el aviso de seguridad de GitHub al que se hace referencia para obtener detalles adicionales, incluyendo las soluciones

References

https://pypi.org/project/matrix-synapse/package, product, third-party-advisory
https://github.com/matrix-org/synapse/pull/9321patch, third-party-advisory, web
https://github.com/matrix-org/synapse/pull/9393patch, third-party-advisory, web
https://github.com/matrix-org/synapse/security/advisories/GHSA-jrh7-mhhx-6h88advisory, patch, 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-21393advisory
https://github.com/matrix-org/synapse/commit/3f58fc848d0002de4605bed91603a1f9f245d128web
https://github.com/matrix-org/synapse/commit/d2f0ec12d5c8f113095408888e87e191ac546499web
https://github.com/matrix-org/synapsepackage
https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-26.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEYweb
https://pypi.org/project/matrix-synapseweb

Sources

SourceRecordLicence
CVE ListCVE-2021-21393 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-jrh7-mhhx-6h88 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21393 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-26 changed 2023-11-08CC-BY-4.0