Vulnerabilities · 2023 · Matrix
CVE-2023-38686
Matrix Sydent vulnerability
Sydent is an identity server for the Matrix communications protocol. Prior to version 2.5.6, 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. This is patched in Sydent 2.5.6. When patching, make sure that Sydent trusts the certificate of the server it is connecting to. This should happen automatically when using properly issued certificates. Those who use self-signed certificates should make sure to copy their Certification Authority certificate, or their self signed certificate if using only one, to the trust store of your operating system. As a workaround, one can ensure Sydent's emails fail to send by setting the configured SMTP server to a loopback or non-routable address under one's control which does not have a listening SMTP server.
Affected products
Sydent. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matrix Sydent runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g · Vendor Advisory
- github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261 · Patch
- github.com/matrix-org/sydent/pull/574 · Patch
- peps.python.org/pep-0476/ · Third Party Advisory
- docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations
- github.com/matrix-org/sydent/releases/tag/v2.5.6
- github.com/python/cpython/issues/91826
- nvd.nist.gov/vuln/detail/CVE-2023-38686
- cve.org/CVERecord?id=CVE-2023-38686
More vulnerabilities in Matrix products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.