CVE-2021-29430
JSON

7.5high

Denial of service attack via memory exhaustion

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
1.83% (higher than 79% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wmg4-8cp2-hpg9PYSEC-2021-21

Description

Sydent is a reference Matrix identity server. Sydent does not limit the size of requests it receives from HTTP clients. A malicious user could send an HTTP request with a very large body, leading to memory exhaustion and denial of service. Sydent also does not limit response size for requests it makes to remote Matrix homeservers. A malicious homeserver could return a very large response, again leading to memory exhaustion and denial of service. This affects any server which accepts registration requests from untrusted clients. This issue has been patched by releases 89071a1, 0523511, f56eee3. As a workaround request sizes can be limited in an HTTP reverse-proxy. There are no known workarounds for the problem with overlarge responses.

Affected

Product or packageVersionsReported by
matrix-org sydent< 2.3.0CVE List
matrix-sydent (PyPI)before 2.3.0, before 0523511d2fb40f2738f8a8549868f44b96e5dab7, before 89071a1a754c69a50deac89e6bb74002d4cda19d, before f56eee315b6c44fdd9f6aa785cc2ec744a594428GitHub Advisory Database, PyPA Advisory Database
matrix sydentbefore 2.3.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

Sydent is a reference Matrix identity server. Sydent does not limit the size of requests it receives from HTTP clients. A malicious user could send an HTTP request with a very large body, leading to memory exhaustion and denial of service. Sydent also does not limit response size for requests it makes to remote Matrix homeservers. A malicious homeserver could return a very large response, again leading to memory exhaustion and denial of service. This affects any server which accepts registration requests from untrusted clients. This issue has been patched by releases 89071a1, 0523511, f56eee3. As a workaround request sizes can be limited in an HTTP reverse-proxy. There are no known workarounds for the problem with overlarge responses.

GitHub Advisory Database
Impact

Sydent does not limit the size of requests it receives from HTTP clients. A malicious user could send an HTTP request with a very large body, leading to disk space exhaustion and denial of service.

Sydent also does not limit response size for requests it makes to remote Matrix homeservers. A malicious homeserver could return a very large response, again leading to memory exhaustion and denial of service.

This affects any server which accepts registration requests from untrusted clients.

Patches

Patched by 89071a1, 0523511, f56eee3.

Workarounds

Request sizes can be limited in an HTTP reverse-proxy.

There are no known workarounds for the problem with overlarge responses.

For more information

If you have any questions or comments about this advisory, email us at security@matrix.org.

NVD (es)

Sydent es un servidor de identidad Matrix de referencia.&#xa0;Sydent no limita el tamaño de las peticiones que recibe de los clientes HTTP.&#xa0;Un usuario malicioso podría enviar una petición HTTP con un cuerpo muy grande, conllevando al agotamiento de la memoria y una denegación de servicio.&#xa0;Sydent tampoco limita el tamaño de respuesta para las peticiones que realiza a los servidores domésticos de Matrix remotos.&#xa0;Un servidor doméstico malicioso podría devolver una respuesta muy grande, lo que nuevamente conlleva al agotamiento de la memoria y a una denegación de servicio.&#xa0;Esto afecta a cualquier servidor que acepte peticiones de registro de clientes no confiables.&#xa0;Este problema ha sido parcheado para las versiones 89071a1, 0523511, f56eee3.&#xa0;Como solución alternativa, los tamaños de las peticiones pueden ser limitados en un proxy inverso HTTP.&#xa0;No se conocen soluciones alternativas para el problema de las respuestas demasiado grandes

References

https://pypi.org/project/matrix-sydent/package, product, third-party-advisory
https://github.com/matrix-org/sydent/security/advisories/GHSA-wmg4-8cp2-hpg9advisory, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/89071a1a754c69a50deac89e6bb74002d4cda19dfix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/0523511d2fb40f2738f8a8549868f44b96e5dab7fix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/f56eee315b6c44fdd9f6aa785cc2ec744a594428fix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/releases/tag/v2.3.0release-notes, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-29430advisory
https://github.com/matrix-org/sydentpackage
https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-21.yamlweb
https://pypi.org/project/matrix-sydentweb

Sources

SourceRecordLicence
CVE ListCVE-2021-29430 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-wmg4-8cp2-hpg9 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-29430 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-21 changed 2023-11-08CC-BY-4.0