Improper Certificate Validation Affecting matrix-sydent package, versions [,2.5.6)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-MATRIXSYDENT-5811868
  • published1 Aug 2023
  • disclosed31 Jul 2023
  • creditMartin Schobert

Introduced: 31 Jul 2023

CVE-2023-38686  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade matrix-sydent to version 2.5.6 or higher.

Overview

matrix-sydent is a Reference Matrix Identity Verification and Lookup Server

Affected versions of this package are vulnerable to Improper Certificate Validation. If configured to send emails using TLS, Sydent does not verify SMTP servers' certificates. This makes Sydent's emails vulnerable to interception via a man-in-the-middle (MITM) attack. Attackers with privileged access to the network can intercept room invitations and address confirmation emails.

Workaround

Users who are unable to upgrade to the fixed version can ensure Sydent's emails fail to send by setting the configured SMTP server to a loopback or non-routable address under the user's control which does not have a listening SMTP server. For example:

email:
    smtphost: "localhost"  # Assuming there is no SMTP server listening on localhost

CVSS Scores

version 3.1