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

CVE-2021-29431 · Severity: low · CVSS 3.1 · Published 2021-04-15

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.

Technologies: matrix-sydent (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-29431 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-29431 being exploited in the wild.
How severe is CVE-2021-29431?
Low severity, with a CVSS score of 3.1, published 15 April 2021.
Which products and versions are affected?
matrix-sydent (PyPI) ECOSYSTEM:introduced=0,fixed=2.3.0, GIT:introduced=0,fixed=3d531ed50d2fd41ac387f36d44d3fb2c62dd22d3,fixed=0f00412017f25619bc36c264b29ea96808bf310a,fixed=9e573348d81df8191bbe8c266c01999c9d57cd5f,fixed=8936925f561b0c352c2fa922d5097d7245aad00a|ECOSYSTEM:introduced=0,fixed=2.3.0.
Is there a fix for CVE-2021-29431?
Yes. matrix-sydent (PyPI): upgrade to 2.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-29431?
Check whether you run matrix-sydent (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • matrix-sydent (PyPI): upgrade to 2.3.0 or later
    pip install "matrix-sydent>=2.3.0"

Affected products

  • matrix-sydent (PyPI) ECOSYSTEM:introduced=0,fixed=2.3.0, GIT:introduced=0,fixed=3d531ed50d2fd41ac387f36d44d3fb2c62dd22d3,fixed=0f00412017f25619bc36c264b29ea96808bf310a,fixed=9e573348d81df8191bbe8c266c01999c9d57cd5f,fixed=8936925f561b0c352c2fa922d5097d7245aad00a|ECOSYSTEM:introduced=0,fixed=2.3.0

Identifiers

  • CVE-2021-29431
  • GHSA-9jhm-8m8c-c3f4
  • PYSEC-2021-22

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.