CVE-2021-29431
JSON

7.7high

SSRF in Sydent due to missing validation of hostnames

Severity
7.7high CVSS:3.1 by GitHub_M
Exploit likelihood
1.19% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9jhm-8m8c-c3f4PYSEC-2021-22

Description

Sydent is a reference Matrix identity server. Sydent can be induced to send HTTP GET requests to internal systems, due to lack of parameter validation or IP address blacklisting. It is not possible to exfiltrate data or control request headers, but it might be possible to use the attack to perform an internal port enumeration. This issue has been addressed in in 9e57334, 8936925, 3d531ed, 0f00412. A potential workaround would be to use a firewall to ensure that Sydent cannot reach internal HTTP resources.

Affected

Product or packageVersionsReported by
matrix-org sydent< 2.3.0CVE List
matrix-sydent (PyPI)before 2.3.0, before 3d531ed50d2fd41ac387f36d44d3fb2c62dd22d3, before 0f00412017f25619bc36c264b29ea96808bf310a, before 9e573348d81df8191bbe8c266c01999c9d57cd5f, before 8936925f561b0c352c2fa922d5097d7245aad00aGitHub Advisory Database, PyPA Advisory Database
matrix sydentbefore 2.3.0NVD

All scores

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

Classification

What each source says

CVE List

Sydent is a reference Matrix identity server. Sydent can be induced to send HTTP GET requests to internal systems, due to lack of parameter validation or IP address blacklisting. It is not possible to exfiltrate data or control request headers, but it might be possible to use the attack to perform an internal port enumeration. This issue has been addressed in in 9e57334, 8936925, 3d531ed, 0f00412. A potential workaround would be to use a firewall to ensure that Sydent cannot reach internal HTTP resources.

GitHub Advisory Database
Impact

Sydent can be induced to send HTTP GET requests to internal systems, due to lack of parameter validation or IP address blacklisting.

It is not possible to exfiltrate data or control request headers, but it might be possible to use the attack to perform an internal port enumeration.

Patches

Fixed in 9e57334, 8936925, 3d531ed, 0f00412

Workarounds

A potential workaround would be to use a firewall to ensure that Sydent cannot reach internal HTTP resources.

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 puede ser inducido a enviar peticiones HTTP GET hacia sistemas internos, debido a una falta de comprobación de parámetros o la lista negra de direcciones IP.&#xa0;No es posible exfiltrar datos o controlar los encabezados de peticiones, pero podría ser posible utilizar el ataque para llevar a cabo una enumeración de puertos internos.&#xa0;Este problema ha sido abordado en 9e57334, 8936925, 3d531ed, 0f00412.&#xa0;Una posible solución alternativa sería utilizar un firewall para garantizar que Sydent no pueda acceder a los recursos HTTP internos

References

https://pypi.org/project/matrix-sydent/package, product, third-party-advisory
https://github.com/matrix-org/sydent/releases/tag/v2.3.0release-notes, third-party-advisory, web
https://github.com/matrix-org/sydent/security/advisories/GHSA-9jhm-8m8c-c3f4advisory, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/9e573348d81df8191bbe8c266c01999c9d57cd5ffix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/8936925f561b0c352c2fa922d5097d7245aad00afix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/3d531ed50d2fd41ac387f36d44d3fb2c62dd22d3fix, patch, third-party-advisory, web
https://github.com/matrix-org/sydent/commit/0f00412017f25619bc36c264b29ea96808bf310afix, patch, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-29431advisory
https://github.com/matrix-org/sydentpackage
https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-22.yamlweb
https://pypi.org/project/matrix-sydentweb

Sources

SourceRecordLicence
CVE ListCVE-2021-29431 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-9jhm-8m8c-c3f4 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-29431 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-22 changed 2023-11-08CC-BY-4.0