Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. matrix-sydent
  4. ›
  5. CVE-2021-29431

CVE-2021-29431: SSRF in Sydent due to missing validation of hostnames

April 19, 2021 (updated September 30, 2024)

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 block listing. 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, 3d531ed, 0f00412. A potential workaround would be to use a firewall to ensure that Sydent cannot reach internal HTTP resources.

References

  • github.com/advisories/GHSA-9jhm-8m8c-c3f4
  • github.com/matrix-org/sydent
  • github.com/matrix-org/sydent/commit/0f00412017f25619bc36c264b29ea96808bf310a
  • github.com/matrix-org/sydent/commit/3d531ed50d2fd41ac387f36d44d3fb2c62dd22d3
  • github.com/matrix-org/sydent/commit/8936925f561b0c352c2fa922d5097d7245aad00a
  • github.com/matrix-org/sydent/commit/9e573348d81df8191bbe8c266c01999c9d57cd5f
  • github.com/matrix-org/sydent/releases/tag/v2.3.0
  • github.com/matrix-org/sydent/security/advisories/GHSA-9jhm-8m8c-c3f4
  • github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-22.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-29431
  • pypi.org/project/matrix-sydent

Code Behaviors & Features

Detect and mitigate CVE-2021-29431 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.0

Fixed versions

  • 2.3.0

Solution

Upgrade to version 2.3.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/matrix-sydent/CVE-2021-29431.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.