Skip to content
OpenAdvisories
Critical · 9.3 CVE-2023-38686 EUVD-2023-0132GHSA-p6hw-wm59-3g5gPYSEC-2023-139

Sydent does not verify email server certificates

Published Aug 4, 2023 · Updated Oct 8, 2024 · Assigned by GitHub_M

Description

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

VendorProductAffectedFixed
matrix-org sydent < 2.5.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS matrix-sydent No fix yet —
Ubuntu 22.04 LTS matrix-sydent No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI matrix-sydent < 2.5.6 2.5.6 GHSA-p6hw-wm59-3g5g

References