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 package | Versions | Reported by |
|---|---|---|
| matrix-org sydent | < 2.3.0 | CVE List |
| matrix-sydent (PyPI) | before 2.3.0, before 0523511d2fb40f2738f8a8549868f44b96e5dab7, before 89071a1a754c69a50deac89e6bb74002d4cda19d, before f56eee315b6c44fdd9f6aa785cc2ec744a594428 | GitHub Advisory Database, PyPA Advisory Database |
| matrix sydent | before 2.3.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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. Sydent no limita el tamaño de las peticiones que recibe de los clientes HTTP. 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. Sydent tampoco limita el tamaño de respuesta para las peticiones que realiza a los servidores domésticos de Matrix remotos. 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. Esto afecta a cualquier servidor que acepte peticiones de registro de clientes no confiables. Este problema ha sido parcheado para las versiones 89071a1, 0523511, f56eee3. Como solución alternativa, los tamaños de las peticiones pueden ser limitados en un proxy inverso HTTP. 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-hpg9 | advisory, patch, third-party-advisory, web | |
| https://github.com/matrix-org/sydent/commit/89071a1a754c69a50deac89e6bb74002d4cda19d | fix, patch, third-party-advisory, web | |
| https://github.com/matrix-org/sydent/commit/0523511d2fb40f2738f8a8549868f44b96e5dab7 | fix, patch, third-party-advisory, web | |
| https://github.com/matrix-org/sydent/commit/f56eee315b6c44fdd9f6aa785cc2ec744a594428 | fix, patch, third-party-advisory, web | |
| https://github.com/matrix-org/sydent/releases/tag/v2.3.0 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29430 | advisory | |
| https://github.com/matrix-org/sydent | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-21.yaml | web | |
| https://pypi.org/project/matrix-sydent | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29430 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wmg4-8cp2-hpg9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-29430 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-21 changed 2023-11-08 | CC-BY-4.0 |